src/Network/Observer/HeartbeatEmitter.php
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.'
            );
        }
    }
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.'
            );
        }
    }
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.' ) ; } }
Verify that the client configured heartbeats don't conflict with the connection read timeout.

@param float $interval
@return void
Verify that the client configured heartbeats don t conflict with the connection read timeout .