games_app/backend/dist/realtime/ws/hub.d.ts
2026-06-29 15:01:23 +02:00

15 lines
499 B
TypeScript

import type WebSocket from 'ws';
import type { WsAuthContext } from './auth';
export declare class GameWsHub {
private clients;
/** Live authenticated sockets per user (this WS process). */
private liveSocketsByUser;
private trackClient;
private untrackClient;
start(): Promise<void>;
register(socket: WebSocket, auth: WsAuthContext | null): void;
private handleMessage;
private send;
}
export declare const gameWsHub: GameWsHub;
//# sourceMappingURL=hub.d.ts.map