PHPDaemon\SockJS\WebSocketRouteProxy::onHandshake PHP Method

onHandshake() public method

public onHandshake ( ) : void
return void
    public function onHandshake()
    {
        $this->realRoute->client->sendFrameReal('o');
        if (($f = $this->sockjs->config->heartbeatinterval->value) > 0) {
            $this->heartbeatTimer = setTimeout(function ($timer) {
                $this->realRoute->client->sendFrameReal('h');
                $timer->timeout();
            }, $f * 1000000.0);
            $this->realRoute->onHandshake();
        }
    }