This commit is contained in:
qiangyanwen 2022-12-06 15:02:07 +08:00
parent 7e504f13b1
commit b095d919ca
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from fastapi import WebSocket
from typing import List from typing import List
class ConnectionManager: class WebsocketManager:
def __init__(self): def __init__(self):
self.active_connections: List[WebSocket] = [] self.active_connections: List[WebSocket] = []
@ -31,4 +31,4 @@ class ConnectionManager:
await connection.send_text(message) await connection.send_text(message)
manager = ConnectionManager() manager = WebsocketManager()