def _websocket_handler(self, ws): rpc_server = WebSocketRPCServer(ws, self.bgp_api_app) rpc_server.serve_forever()
def _websocket_handler(self, ws): simple_switch = self.simple_switch_app simple_switch.logger.debug('WebSocket connected: %s', ws) rpc_server = WebSocketRPCServer(ws, simple_switch) rpc_server.serve_forever() simple_switch.logger.debug('WebSocket disconnected: %s', ws)
def websocket_handler_2(self, ws): logger.debug('WebSocket connected: %s', ws) rpc_server = WebSocketRPCServer(ws, self.ctrl_api.app) rpc_server.serve_forever() logger.debug('WebSocket disconnected: %s', ws)