def __init__(self, id): """ Constructor :param id: Socket id """ ApiSocket.__init__(self) self.ws = None # Web socket self.id = id self.wst = None # Web socket thread self._connected = False self.on_message_handlers = [] self.on_open_handlers = [] self.on_close_handlers = [] self.on_error_handlers = []
def __init__(self): """ Constructor """ ApiSocket.__init__(self)