fix websocket on_message

This commit is contained in:
j 2014-09-01 09:51:48 +02:00
parent 4dece6bc10
commit 6f811b6093

View file

@ -33,7 +33,7 @@ class Handler(WebSocketHandler):
#websocket calls #websocket calls
def on_message(self, message): def on_message(self, message):
action, data = json.load(message) action, data = json.loads(message)
if state.tasks: if state.tasks:
state.tasks.queue(action, data) state.tasks.queue(action, data)