protected function onDelay()
    {
        try {
            $this->connection->sendAlive($this->intervalClient / 1000);
        } catch (ConnectionException $e) {
            throw new HeartbeatException('Could not send heartbeat to server.', $e);
        }
        $this->rememberActivity();
    }