We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ce0a21 commit bb9eef8Copy full SHA for bb9eef8
packages/client/src/client/streamableHttp.ts
@@ -474,7 +474,7 @@ export class StreamableHTTPClientTransport implements Transport {
474
} catch (error) {
475
this.onerror?.(new Error(`Failed to reconnect: ${error instanceof Error ? error.message : String(error)}`));
476
}
477
- } else {
+ } else if (!this._abortController?.signal.aborted) {
478
// Stream disconnected and reconnection will not happen; surface the error
479
this.onerror?.(new Error(`SSE stream disconnected: ${error instanceof Error ? error.message : String(error)}`));
480
0 commit comments