コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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()
コード例 #4
0
 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)