Files
dpu-shared/dist/sse.d.ts
2026-02-05 04:31:54 +01:00

18 lines
442 B
TypeScript

import { UUID } from "crypto";
export type SseClient = {
id: UUID;
send: (data: SseEvent) => void;
};
export type SseEvent = {
type: string;
data?: unknown;
message?: string;
};
export declare class SseService {
private clients;
addClient(client: SseClient): void;
removeClient(clientId: string): void;
notifyClients(event: SseEvent): void;
getClientCount(): number;
}
//# sourceMappingURL=sse.d.ts.map