def __check_ws_alive(self):
    if (not self.ws.updated):
        self.ws = BitMEXWebsocket()
        self.ws.connect(self.base_url, self.symbol, shouldAuth=self.shouldWSAuth)
    self.ws.updated = False
    self.t = Timer(10, self.__check_ws_alive).start()
def __check_ws_alive(self):
    if (not self.ws.updated):
        self.ws = BitMEXWebsocket()
        self.ws.connect(self.base_url, self.symbol, shouldAuth=self.shouldWSAuth)
    self.ws.updated = False
    self.t = Timer(10, self.__check_ws_alive).start()