(self)
close websocket connection.
close websocket connection.
close websocket connection .
def close(self):
        """
        close websocket connection.
        """
        self.keep_running = False
        self.sock.close()
def close ( self ) : self . keep_running = False self . sock . close ( )