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