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

defaultCallback() public méthode

Sets a callback that gets invoked when a message is received on a channel that does not have an associated callback.
public defaultCallback ( mixed $callable = null )
$callable mixed A callback.
    public function defaultCallback($callable = null)
    {
        if (isset($callable)) {
            $this->assertCallback($callable);
        }
        $this->subscriptionCallback = $callable;
    }