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