Skip to content

Commit b062d75

Browse files
committed
change standalone sse key
1 parent 67a4595 commit b062d75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/server/streamableHttp.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ describe("StreamableHTTPServerTransport with resumability", () => {
10001000
const eventId = idMatch![1];
10011001
expect(storedEvents.has(eventId)).toBe(true);
10021002
const storedEvent = storedEvents.get(eventId);
1003-
expect(eventId.startsWith('standalonesse')).toBe(true);
1003+
expect(eventId.startsWith('_GET_stream')).toBe(true);
10041004
expect(storedEvent?.message).toMatchObject(notification);
10051005
});
10061006

Diff for: src/server/streamableHttp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class StreamableHTTPServerTransport implements Transport {
9696
private _requestResponseMap: Map<RequestId, JSONRPCMessage> = new Map();
9797
private _initialized: boolean = false;
9898
private _enableJsonResponse: boolean = false;
99-
private _standaloneSseStreamId: string = 'standalonesse';
99+
private _standaloneSseStreamId: string = '_GET_stream';
100100
private _eventStore?: EventStore;
101101

102102
sessionId?: string | undefined;

0 commit comments

Comments
 (0)