cbexchange/websock.py
def _keep_alive_thread(self):
    """Used exclusively as a thread which keeps the WebSocket alive."""
    while True:
      with self._lock:
        if self.connected():
          self._ws.ping()
        else:
          self.disconnect()
          self._thread = None
          return
      sleep(30)
def _keep_alive_thread(self):
    """Used exclusively as a thread which keeps the WebSocket alive."""
    while True:
      with self._lock:
        if self.connected():
          self._ws.ping()
        else:
          self.disconnect()
          self._thread = None
          return
      sleep(30)
def _keep_alive_thread ( self ) : while True : with self . _lock : if self . connected ( ) : self . _ws . ping ( ) else : self . disconnect ( ) self . _thread = None return sleep ( 30 )
Used exclusively as a thread which keeps the WebSocket alive.
Used exclusively as a thread which keeps the WebSocket alive .