def METHOD_NAME(self):
    """
    Connects the websocket and initiate the upgrade handshake.
    """
    self.io.set_close_callback(self.__connection_refused)
    self.io.METHOD_NAME((self.host, int(self.port)), self.__send_handshake)