(error: ProviderError.ResponseStreamError)
| 163 | } |
| 164 | |
| 165 | function invalidate(error: ProviderError.ResponseStreamError) { |
| 166 | if (completed) return |
| 167 | completed = true |
| 168 | cleanup() |
| 169 | options.onConnectionInvalid?.(error) |
| 170 | controller?.error(error) |
| 171 | } |
| 172 | |
| 173 | function resetIdleTimeout(message: string) { |
| 174 | if (completed) return |