protected function write(string $data)
    {
        $this->clearTimeout();
        $this->conn->write($data . static::NEW_LINE);
        $this->log('<-' . $data);
        $this->setTimeout();
    }
protected function write(string $data)
    {
        $this->clearTimeout();
        $this->conn->write($data . static::NEW_LINE);
        $this->log('<-' . $data);
        $this->setTimeout();
    }
protected function write ( string $ data ) { $ this -> clearTimeout ( ) ; $ this -> conn -> write ( $ data . static :: NEW_LINE ) ; $ this -> log ( '<-' . $ data ) ; $ this -> setTimeout ( ) ; }
Write data to the connection

@param string $data
Write data to the connection