From 05bc7e8cd8382aabdd44f7bc569d2fd421c26f21 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 9 Dec 2014 18:55:16 +0100 Subject: generalize store --- libmproxy/web/app.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libmproxy/web/app.py') diff --git a/libmproxy/web/app.py b/libmproxy/web/app.py index 3fce9d64..d5638c10 100644 --- a/libmproxy/web/app.py +++ b/libmproxy/web/app.py @@ -23,13 +23,8 @@ class WebSocketEventBroadcaster(tornado.websocket.WebSocketHandler): self.connections.remove(self) @classmethod - def broadcast(cls, type, data): - message = json.dumps( - { - "type": type, - "data": data - } - ) + def broadcast(cls, **kwargs): + message = json.dumps(kwargs) for conn in cls.connections: try: conn.write_message(message) -- cgit v1.2.3