<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>
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):
PORT = getenv('RPSLS_PORT')
if PORT is None:
- PORT = "8000"
+ PORT = "8000" #8001
PORT = int(PORT)
# Wrap with a WSGI application