메소드 |
설명 |
|
__construct ( Bravo3\Orm\Drivers\PubSubDriverInterface $driver ) |
|
|
addListener ( string $channel, callable $callback, integer $priority ) : PubSubManager |
Add a callback to a channel which will get triggered when channel receives a message via a publisher. |
|
eventTrigger ( array $payload ) : PubSubEvent |
Function triggers PubSub events based on the messages received on subscribed channels. |
|
publish ( string $channel, string $message ) : boolean |
Publishes a message to the configured channel. Channel and Message length is limited based on the driver used. |
|
removeListener ( string $channel, callable $callback ) : PubSubManager |
Removes the callbacks assigned to database driver PubSub mechanism. |
|
run ( ) : void |
|
|