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

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

        $this->send($payload);
    }