diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-16 12:00:36 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-16 12:00:36 +0100 |
commit | b711f63c4087b3a9f5617af5b55afe93f414ddf5 (patch) | |
tree | a4eddad86c3024481b5bf64f6663d3143c0ab3d5 /api/game/socket.py | |
parent | 64f53e70901069aab8344e24ebf0abe603f40ec3 (diff) |
working websocket connection
Diffstat (limited to 'api/game/socket.py')
-rw-r--r-- | api/game/socket.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/api/game/socket.py b/api/game/socket.py new file mode 100644 index 0000000..405d9cd --- /dev/null +++ b/api/game/socket.py @@ -0,0 +1,10 @@ +from flask import Blueprint, request, make_response +from flask_socketio import SocketIO, emit, disconnect +from main import socketio +import time +import json + +@socketio.on("connect", namespace="/game/socket") +def connect(): + print("connected") + |