sse typing

This commit is contained in:
Darius
2026-02-04 21:52:32 +01:00
parent b55e1dd0a6
commit ada7268062
8 changed files with 89 additions and 1 deletions

17
dist/sse.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
export interface SseClient {
id: number;
send: (data: SseEvent) => void;
}
export interface SseEvent {
type: string;
data?: unknown;
message?: string;
}
export declare class SseService {
private clients;
addClient(client: SseClient): void;
removeClient(clientId: number): void;
notifyClients(event: SseEvent): void;
getClientCount(): number;
}
//# sourceMappingURL=sse.d.ts.map