We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583202f commit 643ef5cCopy full SHA for 643ef5c
src/server/streamableHttp.ts
@@ -382,10 +382,8 @@ export class StreamableHTTPServerTransport implements Transport {
382
383
// check if it contains requests
384
const hasRequests = messages.some(isJSONRPCRequest);
385
- const hasOnlyNotificationsOrResponses = messages.every(msg =>
386
- isJSONRPCNotification(msg) || isJSONRPCResponse(msg));
387
388
- if (hasOnlyNotificationsOrResponses) {
+ if (!hasRequests) {
389
// if it only contains notifications or responses, return 202
390
res.writeHead(202).end();
391
0 commit comments