초기 커밋
This commit is contained in:
17
app/communication/socketio/events.py
Normal file
17
app/communication/socketio/events.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import structlog
|
||||
|
||||
from app.communication.socketio.server import sio
|
||||
|
||||
logger = structlog.get_logger("socketio")
|
||||
|
||||
|
||||
@sio.event
|
||||
async def connect(sid: str, environ: dict) -> None:
|
||||
logger.info("client_connected", sid=sid)
|
||||
|
||||
|
||||
@sio.event
|
||||
async def disconnect(sid: str) -> None:
|
||||
logger.info("client_disconnected", sid=sid)
|
||||
Reference in New Issue
Block a user