Predis\PubSub\DispatcherLoop::subscriptionCallback PHP Method

subscriptionCallback() public method

Sets a callback that gets invoked upon new subscriptions.
public subscriptionCallback ( mixed $callable = null )
$callable mixed A callback.
    public function subscriptionCallback($callable = null)
    {
        if (isset($callable)) {
            $this->assertCallback($callable);
        }
        $this->subscriptionCallback = $callable;
    }