summaryrefslogtreecommitdiff
path: root/server.py
AgeCommit message (Collapse)Author
2015-06-04handle the disconnection of the clientsOlivier Gayot
when a client disconnects, we must not try to send him a message since its socket is destroyed. However, a race condition can still probably occur if a client is disconnected during the handling of a request which leads to a notification. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04added a system of notificationOlivier Gayot
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>
2015-06-04fixed bug the card id was considered a stringOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04add a working main server fileOlivier Gayot
The server is ready to deal with requests from web browsers. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04removed useless contentOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-03added a first version of the server main functionOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>