class_docstr: This thread class is responsible for running a WebSocketClient.
class_docstr_tok: ["This","thread","class","is","responsible","for","running","a","WebSocketClient","."]
code: def stop(self):
      try:
          if self.__wsClient is not None:
              common.logger.info("Stopping websocket client.")
              self.__wsClient.stopClient()
      except Exception as e:
          common.logger.error(
              "Error stopping websocket client: %s." % (str(e))
          )
  
imports: import datetime
  from six.moves import queue
  from pyalgotrade.websocket import pusher
  from pyalgotrade.websocket import client
  from pyalgotrade.bitstamp import common
label_desc: Use image node_id 4 for calling the WebSocketClientThread obj's underlying member method code with example usage: obj.stop() without return types