MCPcopy
hub / github.com/arc53/DocsGPT / SSEEvent

Interface SSEEvent

frontend/src/notifications/notificationsSlice.ts:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 * (`application/events/publisher.py`). Mirrors the wire JSON 1:1.
13 */
14export interface SSEEvent<P = Record<string, unknown>> {
15 id?: string;
16 type: string;
17 ts?: string;
18 user_id?: string;
19 topic?: string;
20 scope?: { kind: string; id: string };
21 payload?: P;
22}
23
24/**
25 * Connection-health state machine the rest of the app reads via

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected