Merge pull request #409 from mhart/patch-1
Ensure JSONRPCError messages are sent for streamable http
This commit is contained in:
commit
465ba67194
1 changed files with 1 additions and 1 deletions
|
|
@ -587,7 +587,7 @@ export class StreamableHTTPServerTransport implements Transport {
|
|||
}
|
||||
}
|
||||
|
||||
if (isJSONRPCResponse(message)) {
|
||||
if (isJSONRPCResponse(message) || isJSONRPCError(message)) {
|
||||
this._requestResponseMap.set(requestId, message);
|
||||
const relatedIds = Array.from(this._requestToStreamMapping.entries())
|
||||
.filter(([_, streamId]) => this._streamMapping.get(streamId) === response)
|
||||
|
|
|
|||
Loading…
Reference in a new issue