We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89f7fb7 + 67ad0bd commit 465ba67Copy full SHA for 465ba67
src/server/streamableHttp.ts
@@ -587,7 +587,7 @@ export class StreamableHTTPServerTransport implements Transport {
587
}
588
589
590
- if (isJSONRPCResponse(message)) {
+ if (isJSONRPCResponse(message) || isJSONRPCError(message)) {
591
this._requestResponseMap.set(requestId, message);
592
const relatedIds = Array.from(this._requestToStreamMapping.entries())
593
.filter(([_, streamId]) => this._streamMapping.get(streamId) === response)
0 commit comments