| 3 | * https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format |
| 4 | */ |
| 5 | export 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. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…