From 310a5febf1cbb15fce4238f6193e7a3d7286bdc5 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Thu, 18 Nov 2021 12:00:34 +0100 Subject: [PATCH] 'update' --- index.html | 3 +++ server.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a62f9c1..1bac61d 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,9 @@ <body> <script src="https://unpkg.com/mithril@2.0.4/mithril.min.js"></script> <script src="https://unpkg.com/socket.io-client@4.3.2/dist/socket.io.min.js"></script> + + <!--<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"></script>--> + <script src="rpsls.js"></script> </body> </html> diff --git a/server.py b/server.py index 01047a5..f63f6e6 100644 --- a/server.py +++ b/server.py @@ -57,8 +57,8 @@ def login(sid, data): uid = cur.fetchone()[0] else: raise + sio.emit("login", {"name": data, "uid": uid}, room=sid) db_operation(upsert) - sio.emit("login", {"name": data, "uid": uid}, room=sid) @sio.event def seek(sid, data): @@ -112,7 +112,7 @@ static_files = { PORT = getenv('RPSLS_PORT') if PORT is None: - PORT = "8000" + PORT = "8000" #8001 PORT = int(PORT) # Wrap with a WSGI application -- 2.44.0