draft 1 of socket refactoring

This commit is contained in:
Jared Tabor
2016-08-29 16:52:52 -07:00
parent e9b54dcd3c
commit 3d979bb661
4 changed files with 151 additions and 26 deletions

View File

@@ -16,7 +16,9 @@ def ws_disconnect(message):
@channel_session
def ws_receive(message):
print(message)
raw_data = message.content['text']
print(raw_data)
data = json.loads(raw_data)
if 'groups' in data: