btfxwss/connection.py
def disconnect(self):
        """Disconnects from the websocket connection and joins the Thread.

        :return:
        """
        self.log.debug("disconnect(): Disconnecting from API..")
        self.reconnect_required.clear()
        self.disconnect_called.set()
        if self.socket:
            self.socket.close()
        self.join(timeout=1)
def disconnect(self):
        """Disconnects from the websocket connection and joins the Thread.

        :return:
        """
        self.log.debug("disconnect(): Disconnecting from API..")
        self.reconnect_required.clear()
        self.disconnect_called.set()
        if self.socket:
            self.socket.close()
        self.join(timeout=1)
def disconnect ( self ) : self . log . debug ( "disconnect(): Disconnecting from API.." ) self . reconnect_required . clear ( ) self . disconnect_called . set ( ) if self . socket : self . socket . close ( ) self . join ( timeout = 1 )
Disconnects from the websocket connection and joins the Thread.

        :return:
Disconnects from the websocket connection and joins the Thread .