src/Client.php
private function getConnectedFrame()
    {
        $deadline = microtime(true) + $this->getConnection()->getConnectTimeout();
        do {
            if ($frame = $this->connection->readFrame()) {
                return $frame;
            }
        } while (microtime(true) <= $deadline);

        return null;
    }
private function getConnectedFrame()
    {
        $deadline = microtime(true) + $this->getConnection()->getConnectTimeout();
        do {
            if ($frame = $this->connection->readFrame()) {
                return $frame;
            }
        } while (microtime(true) <= $deadline);

        return null;
    }
private function getConnectedFrame ( ) { $ deadline = microtime ( true ) + $ this -> getConnection ( ) -> getConnectTimeout ( ) ; do { if ( $ frame = $ this -> connection -> readFrame ( ) ) { return $ frame ; } } while ( microtime ( true ) <= $ deadline ) ; return null ; }
Returns the next available frame from the connection, respecting the connect timeout.

@return null|Frame
@throws ConnectionException
@throws Exception\ErrorFrameException
Returns the next available frame from the connection respecting the connect timeout .