def _websocket_handler(self, ws): rpc_client = WebSocketRPCClient(ws) self.app.rpc_clients.append(rpc_client) rpc_client.serve_forever()
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()
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()