diff --git a/lib/tfw/server/zmq_websocket_router.py b/lib/tfw/server/zmq_websocket_router.py index f682f02..cb19c33 100644 --- a/lib/tfw/server/zmq_websocket_router.py +++ b/lib/tfw/server/zmq_websocket_router.py @@ -54,7 +54,7 @@ class TFWRouter: self.send_to_websockets = send_to_websockets def route(self, message): - scope = Scope(message.get('scope', 'zmq')) + scope = Scope(message.pop('scope', 'zmq')) routing_table = { Scope.ZMQ: self.send_to_zmq,