(response: Response)
| 285 | // ------------------------------------------------------------------------- |
| 286 | |
| 287 | async function collectEvents(response: Response): Promise<ServerSentEvent[]> { |
| 288 | const events: ServerSentEvent[] = []; |
| 289 | for await (const event of parseSSE(response)) { |
| 290 | events.push(event); |
| 291 | } |
| 292 | return events; |
| 293 | } |
| 294 | }); |
no test coverage detected