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 run(self):
      super(WebSocketClientThread, self).run()
  
      # We create the WebSocketClient right in the thread, instead of doing so in the constructor,
      # because it has thread affinity.
      try:
          self.__wsClient = WebSocketClient(self.__queue)
          self.__wsClient.connect()
          self.__wsClient.startClient()
      except Exception:
          common.logger.exception("Failed to connect: %s")
  
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 3 for calling the WebSocketClientThread obj's underlying member method code with example usage: obj.run() without return types