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()