(
private readonly url: string,
private readonly opts: SSEConnectionOptions
)
| 109 | private reconnectTimer: ReturnType<typeof setTimeout> | undefined; |
| 110 | |
| 111 | constructor( |
| 112 | private readonly url: string, |
| 113 | private readonly opts: SSEConnectionOptions |
| 114 | ) { |
| 115 | this.maxReconnects = opts.maxReconnects ?? 5; |
| 116 | } |
| 117 | |
| 118 | connect(): void { |
| 119 | if (this.closed) return; |
nothing calls this directly
no outgoing calls
no test coverage detected