use redis to store netplay data

This commit is contained in:
Georges-Antoine Assi
2025-12-07 12:02:35 -05:00
parent f5676d7cfe
commit 09dbb2e244
8 changed files with 119 additions and 75 deletions

View File

@@ -5,7 +5,7 @@ from utils import json_module
class SocketHandler:
def __init__(self, path: str = "/ws/socket.io") -> None:
def __init__(self, path: str) -> None:
self.socket_server = socketio.AsyncServer(
cors_allowed_origins="*",
async_mode="asgi",
@@ -22,5 +22,5 @@ class SocketHandler:
self.socket_app = socketio.ASGIApp(self.socket_server, socketio_path=path)
socket_handler = SocketHandler()
socket_handler = SocketHandler(path="/ws/socket.io")
netplay_socket_handler = SocketHandler(path="/netplay/socket.io")