This commit is contained in:
Ruben van de Ven 2019-09-12 14:52:38 +02:00
parent b8c7f3efe2
commit fabfb46140

View file

@ -73,7 +73,7 @@ class WebSocketHandler(tornado.websocket.WebSocketHandler):
# the client connected
def open(self, p = None):
self.__class__.connections.add(self)
logger.info("New client connected")
logger.info(f"New client connected: {self.request.remote_ip}")
self.strokes = []
# self.write_message("hello!")
@ -118,7 +118,7 @@ class WebSocketHandler(tornado.websocket.WebSocketHandler):
# client disconnected
def on_close(self):
self.__class__.rmConnection(self)
logger.info("Client disconnected")
logger.info(f"Client disconnected: {self.request.remote_ip}")
def submit_strokes(self):
if len(self.strokes) < 1: