Predis\PubSub\DispatcherLoop::defaultCallback PHP 메소드

defaultCallback() 공개 메소드

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