BsbCrossbarPusherStrategy is a strategy for the SlmQueue ZF2 module that provides the ability to publish worker events to a crossbar.io HTTP Pusher Service.
-- NOT PRODUCTION READY --
BsbCrossbarPusherStrategy requires Composer. To install it into your project, just add the following line into your composer.json file:
composer.phar require "bushbaby/slmqueue-crossbarpusherstrategy:~1.0"
Enable the module by adding BsbCrossbarPusherStrategy in your application.config.php file.
By enabling this module a new strategy is registered into the strategy manager of SlmQueue. You should then activate it by adding it some configuration to the appropriate worker queues. A suggested place is the slm_queue.global.php in your autoload configuration directory.
example: enabled the BsbCrossbarPusherStrategy for the queue called default with [finish]
'worker_strategies' => array(
'default' => array( // per worker
),
'queues' => array( // per queue
'default' => array(
'BsbCrossbarPusherStrategy\Strategy\CrossbarPusherStrategy' => array(
... options
),
),
),
),
You can configure CrossbarPusherStrategy in every individual worker or queue in this manner. However it might be more
convenient to configure this globally and only override specific options. To do this copy the
config/bsb_crossbarpusherstrategy.local.php.dist
to the application autoload directory and modify accordingly.
[to be written]