public function extractOverflow() {
        if ($this->isCoalesced()) {
            $endPoint  = $this->getPayloadLength();
            $endPoint += $this->getPayloadStartingByte();

            if ($this->bytesRecvd > $endPoint) {
                $overflow   = substr($this->data, $endPoint);
                $this->data = substr($this->data, 0, $endPoint);

                return $overflow;
            }
        }

        return '';
    }
public function extractOverflow() {
        if ($this->isCoalesced()) {
            $endPoint  = $this->getPayloadLength();
            $endPoint += $this->getPayloadStartingByte();

            if ($this->bytesRecvd > $endPoint) {
                $overflow   = substr($this->data, $endPoint);
                $this->data = substr($this->data, 0, $endPoint);

                return $overflow;
            }
        }

        return '';
    }
public function extractOverflow ( ) { if ( $ this -> isCoalesced ( ) ) { $ endPoint = $ this -> getPayloadLength ( ) ; $ endPoint += $ this -> getPayloadStartingByte ( ) ; if ( $ this -> bytesRecvd > $ endPoint ) { $ overflow = substr ( $ this -> data , $ endPoint ) ; $ this -> data = substr ( $ this -> data , 0 , $ endPoint ) ; return $ overflow ; } } return '' ; }
Sometimes clients will concatenate more than one frame over the wire
This method will take the extra bytes off the end and return them
@return string
Sometimes clients will concatenate more than one frame over the wire This method will take the extra bytes off the end and return them