def fetch_response(self):
        self._append( FIELD_INT )
        if self.get_protocol() > 26:
            self._append( FIELD_STRING )

        result = super( ConnectMessage, self ).fetch_response()

        # IMPORTANT needed to pass the id to other messages
        self._session_id = result[0]
        self._update_socket_id()

        if self.get_protocol() > 26:
            if result[1] is None:
                self.set_session_token( False )
            self._auth_token = result[1]
            self._update_socket_token()

        return self._session_id
dataset/ETHPy150Open mogui/pyorient/pyorient/messages/connection.py/ConnectMessage.fetch_response/original