set => map
This commit is contained in:
5
dist/sse.d.ts
vendored
5
dist/sse.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
import { UUID } from "crypto";
|
||||
export type SseClient = {
|
||||
id: number;
|
||||
id: UUID;
|
||||
send: (data: SseEvent) => void;
|
||||
};
|
||||
export type SseEvent = {
|
||||
@@ -10,7 +11,7 @@ export type SseEvent = {
|
||||
export declare class SseService {
|
||||
private clients;
|
||||
addClient(client: SseClient): void;
|
||||
removeClient(clientId: number): void;
|
||||
removeClient(clientId: string): void;
|
||||
notifyClients(event: SseEvent): void;
|
||||
getClientCount(): number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user