src/ResourceSocket.php
function write($data) {
        if(!$this->writable) {
            return false;
        }
        
        $this->data .= $data;
        
        $this->addWriteListener();
        return (!isset($this->data[($this->softLimit - 1)]));
    }
function write($data) {
        if(!$this->writable) {
            return false;
        }
        
        $this->data .= $data;
        
        $this->addWriteListener();
        return (!isset($this->data[($this->softLimit - 1)]));
    }
Write some data into the stream.
@param mixed|string  $data
@return bool