protected function disconnect()
    {
        if (!empty($this->socket)) {
            $this->socket = null;
            $this->request->setLastEvent('disconnect');
        }
    }
protected function disconnect()
    {
        if (!empty($this->socket)) {
            $this->socket = null;
            $this->request->setLastEvent('disconnect');
        }
    }
protected function disconnect ( ) { if ( ! empty ( $ this -> socket ) ) { $ this -> socket = null ; $ this -> request -> setLastEvent ( 'disconnect' ) ; } }
Disconnects from the remote server
Disconnects from the remote server