aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/web/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/web/app.py')
-rw-r--r--libmproxy/web/app.py9
1 files changed, 2 insertions, 7 deletions
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)