def subscribe_backend(self, url, callback, error_handler=None, running_callback=None): request = self.websocket_request_impl.subscribe_backend( callback, error_handler) request.name = "subscribe_backend" connection = WebsocketConnection(self.__api_key, self.__secret_key, url, self.__watch_dog, request) self.connections.append(connection) connection.connect() self.thread_safe_shutdown(request.name, callback=running_callback)
def subscribe_backend(self, callback, error_handler=None, running_callback=None): request = self.websocket_request_impl.subscribe_backend( callback, error_handler) request.name = "subscribe_backend" connection = WebsocketConnection(None, None, self.uri, self.__watch_dog, request, simple=True) self.connections.append(connection) connection.connect() self.thread_safe_shutdown(request.name, callback=running_callback)
def __create_connection(self, request): connection = WebsocketConnection(self.__api_key, self.__secret_key, self.uri, self.__watch_dog, request) self.connections.append(connection) connection.connect()
def __create_connection(self, request, running_callback=None): connection = WebsocketConnection(self.__api_key, self.__secret_key, self.uri, self.__watch_dog, request) self.connections.append(connection) connection.connect() self.thread_safe_shutdown(request.name, callback=running_callback)