Add simple client. Print server received messages.

This commit is contained in:
Ian Gulliver
2016-05-04 04:13:31 +00:00
parent 4f4fc9a092
commit 5e4ce142c3
2 changed files with 68 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ def GetWebSocketHandler(image_types, websockets):
def closed(self, code, reason=None):
websockets.remove(self)
def received_message(self, msg):
print(json.loads(str(msg)))
return WebSocketHandler