From f7bec31d3ffaf28f34bef0962be74d8de77cbd8f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 14 Sep 2015 19:09:08 +0200 Subject: Add SID to JSON object in UserSession.send --- server/user_session.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/user_session.py b/server/user_session.py index 5eec743..2cc629c 100644 --- a/server/user_session.py +++ b/server/user_session.py @@ -137,6 +137,7 @@ class UserSession(object): :param json_obj: a dict representing the json message :return: None """ + json_obj['sid'] = self.sid handlers.send(None, self.sid, json_obj) def __del__(self): -- cgit v1.2.1