PHPDaemon\SockJS\Application::subscribe PHP Method

subscribe() public method

subscribe
public subscribe ( string $chan, callable $cb, callable $opcb = null ) : void
$chan string [@todo description]
$cb callable [@todo description]
$opcb callable [@todo description]
return void
    public function subscribe($chan, $cb, $opcb = null)
    {
        $this->redis->subscribe($this->config->redisprefix->value . $chan, $cb, $opcb);
    }