public subscribe ( string $topic, string | Closur\Closure $callback, array $options = null, boolean $isFunction = false ) : |
||
$topic | string | The topic name. |
$callback | string | Closur\Closure | The callable to be called when the topic received a publish. |
$options | array | Will be passed straight to thruway @see \Thruway\ClientSession::subscribe |
$isFunction | boolean | Specify whether you're passing in a function from a different scope, Set this to TRUE to avoid calling the passed callable from this provider's scope. |
return |