Documentation

AddShared

CPullStack::AddShared(
   Array(
      'module_id' => 'test',
      'command' => 'check',
      'params' => Array(),
   )
);

This method sends data to all users (to the Queue server main channel). Static method.

Parameters

Parameter Description Available from version
module_id Module that sends a command
command Command which will be processed via JS
params Any set of data, which will be processed via JS

Note:
  • Calling this method in configuration without queue server will not result in message sending, because the main channel is available only in the queue server.
  • SPECIAL ATTENTION: this method sends data to all users, it is prohibited to pass secret data this way: it will be visible to all.



© «Bitrix24», 2001-2024
Up