def _handler_topology_websocket(self, ws): rpc_server = WebSocketRPCServer(ws, self.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(self, ws): rpc_server = WebSocketRPCServer(ws, self.bgp_api_app) rpc_server.serve_forever()
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)
def _websocket_handler(self, ws): rpc_client = WebSocketRPCServer(ws, self.app) rpc_client.serve_forever()