from typing import NamedTuple

from fastapi import WebSocket


class WSManager(NamedTuple):
    id: int
    connections: set[WebSocket]
