morozovsk\websocket\GenericSelect::_read PHP Method

_read() protected method

protected _read ( $connectionId )
    protected function _read($connectionId)
    {
        $data = fread($this->getConnectionById($connectionId), self::SOCKET_BUFFER_SIZE);
        if (!strlen($data)) {
            return;
        }
        @($this->_read[$connectionId] .= $data);
        //add the data into the read buffer
        return strlen($this->_read[$connectionId]) < self::MAX_SOCKET_BUFFER_SIZE;
    }