Predis\PubSub\DispatcherLoop::subscriptionCallback PHP Méthode

subscriptionCallback() public méthode

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;
    }