PHPDaemon\SockJS\Session::poll PHP Method

poll() public method

poll
public poll ( object $redis ) : void
$redis object
return void
    public function poll($redis)
    {
        if (!$redis) {
            return;
        }
        list(, $chan, $msg) = $redis->result;
        $this->pollMode = json_decode($msg, true);
        Timer::setTimeout($this->finishTimer);
        $this->flush();
    }