src/Transport/Parser.php
public function nextFrame()
    {
        if ($this->parse()) {
            $frame = $this->getFrame();
            $this->frame = null;
            if ($this->observer) {
                $this->observer->receivedFrame($frame);
            }
            return $frame;
        }
        return null;
    }
public function nextFrame()
    {
        if ($this->parse()) {
            $frame = $this->getFrame();
            $this->frame = null;
            if ($this->observer) {
                $this->observer->receivedFrame($frame);
            }
            return $frame;
        }
        return null;
    }
public function nextFrame ( ) { if ( $ this -> parse ( ) ) { $ frame = $ this -> getFrame ( ) ; $ this -> frame = null ; if ( $ this -> observer ) { $ this -> observer -> receivedFrame ( $ frame ) ; } return $ frame ; } return null ; }
Parse current buffer and return the next available frame, otherwise return null.

@return null|Frame
Parse current buffer and return the next available frame otherwise return null .