summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 05:54:16 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 05:54:16 +0100
commit0cae8115a93589e37943590db45967beec841a07 (patch)
treead5bbecff01e42362d3670b90000fa77e9d38cc9 /server.py
parent7d191b337b3114ceaa2ea69b538d3cd4f83bc094 (diff)
added a system of notification
what the client will receive will look like: {'type': TYPE, 'content': CONTENT} TYPE will be either 'notification' or 'response' CONTENT will be the content of the notification or the response Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.py b/server.py
index 77d8cab..cdd8abf 100755
--- a/server.py
+++ b/server.py
@@ -10,7 +10,7 @@ import json
game_manager = CAO_GameManager.CAO_GameManager()
def new_client_handler(client, server):
- client['cao_client'] = CAO_Client.CAO_Client(game_manager)
+ client['cao_client'] = CAO_Client.CAO_Client(server, client, game_manager)
def client_left_handler(client, server):
pass