protected function handleHeartbeat($data)
    {
        $this->logger->debug('received heartbeat', ['seq' => $data->d]);

        $payload = [
            'op' => Op::OP_HEARTBEAT,
            'd'  => $data->d,
        ];

        $this->send($payload);
    }
protected function handleHeartbeat($data)
    {
        $this->logger->debug('received heartbeat', ['seq' => $data->d]);

        $payload = [
            'op' => Op::OP_HEARTBEAT,
            'd'  => $data->d,
        ];

        $this->send($payload);
    }
protected function handleHeartbeat ( $ data ) { $ this -> logger -> debug ( 'received heartbeat' , [ 'seq' => $ data -> d ] ) ; $ payload = [ 'op' => Op :: OP_HEARTBEAT , 'd' => $ data -> d , ] ; $ this -> send ( $ payload ) ; }
Handles heartbeat packets received by the client.

@param object $data Packet data.
Handles heartbeat packets received by the client .