16 lines
533 B
TypeScript
16 lines
533 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>;
|
|
private dispatchRedisMessage;
|
|
register(socket: WebSocket, auth: WsAuthContext | null): void;
|
|
private handleMessage;
|
|
private send;
|
|
}
|
|
export declare const gameWsHub: GameWsHub;
|
|
//# sourceMappingURL=hub.d.ts.map
|