15 lines
279 B
Python
15 lines
279 B
Python
from __future__ import annotations
|
|
|
|
import socketio
|
|
|
|
from app.core.config import settings
|
|
|
|
sio = socketio.AsyncServer(
|
|
async_mode="asgi",
|
|
cors_allowed_origins=settings.CORS_ORIGINS,
|
|
logger=settings.DEBUG,
|
|
engineio_logger=False,
|
|
)
|
|
|
|
sio_app = socketio.ASGIApp(sio)
|