trying stuff out

This commit is contained in:
Mawoka
2022-04-15 19:09:44 +02:00
parent 685b1cdece
commit 4d61190d98
3 changed files with 28 additions and 18 deletions
+2 -1
View File
@@ -6,12 +6,13 @@ import socketio
from classquiz.config import redis, settings
from classquiz.db.models import PlayGame
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=[])
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=["https://classquiz.mawoka.eu"])
settings = settings()
@sio.event
async def join_game(sid, data):
print(sid, data, "JOIN_GAME")
async with aiohttp.ClientSession() as session:
try:
async with session.post(