Example #1
0
 def _websocket_handler(self, ws):
     rpc_client = WebSocketRPCClient(ws)
     self.app.rpc_clients.append(rpc_client)
     rpc_client.serve_forever()
Example #2
0
 def _websocket_handler(self, ws):
     rpc_client = WebSocketRPCClient(ws)
     self.app.rpc_clients.append(rpc_client)
     rpc_client.serve_forever()
Example #3
0
 def _websocket_handler(self, ws):
     rpc_client = WebSocketRPCClient(ws)
     self.app.rpc_clients.append(rpc_client)
     # init_client requires a running event loop
     spawn(self.app.init_client, rpc_client)
     rpc_client.serve_forever()
Example #4
0
 def add_ws_client(self, ws):
     rpc_client = WebSocketRPCClient(ws)
     self.dc_network.rpc_clients.append(rpc_client)
     rpc_client.serve_forever()
 def get_performance_ws(self, ws):
     """Creates the websocket link to client"""
     print('new ws client')
     rpc_client = WebSocketRPCClient(ws)
     self.performance_app.rpc_clients.append(rpc_client)
     rpc_client.serve_forever()
Example #6
0
 def _websocket_handler(self, ws):
     rpc_client = WebSocketRPCClient(ws)
     self.app.rpc_clients.append(rpc_client)
     # init_client requires a running event loop
     spawn(self.app.init_client, rpc_client)
     rpc_client.serve_forever()