private function assertReadTimeoutSufficient($interval)
    {
        $readTimeout = $this->connection->getReadTimeout();
        $readTimeoutMs = ($readTimeout[0] * 1000) + ($readTimeout[1] / 1000);

        if ($interval < $readTimeoutMs) {
            throw new HeartbeatException(
                'Client heartbeat is lower than connection read timeout, causing failing heartbeats.'
            );
        }
    }