MCPcopy
hub / github.com/Azure/fetch-event-source / EventSourceMessage

Interface EventSourceMessage

src/parse.ts:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3 * https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format
4 */
5export interface EventSourceMessage {
6 /** The event ID to set the EventSource object's last event ID value. */
7 id: string;
8 /** A string identifying the type of event described. */
9 event: string;
10 /** The event data */
11 data: string;
12 /** The reconnection interval (in milliseconds) to wait before retrying the connection */
13 retry?: number;
14}
15
16/**
17 * Converts a ReadableStream into a callback pattern.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…