mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
use redis to store netplay data
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user