first commit
This commit is contained in:
10
app/realtime/models.py
Normal file
10
app/realtime/models.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from fastapi import WebSocket
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class ConnectionContext:
|
||||
user_id: int
|
||||
connection_id: str
|
||||
websocket: WebSocket
|
||||
Reference in New Issue
Block a user