change standalone sse key

This commit is contained in:
ihrpr 2025-04-15 16:41:33 +01:00
commit b062d75a73
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1000,7 +1000,7 @@ describe("StreamableHTTPServerTransport with resumability", () => {
const eventId = idMatch![1];
expect(storedEvents.has(eventId)).toBe(true);
const storedEvent = storedEvents.get(eventId);
expect(eventId.startsWith('standalonesse')).toBe(true);
expect(eventId.startsWith('_GET_stream')).toBe(true);
expect(storedEvent?.message).toMatchObject(notification);
});

View file

@ -96,7 +96,7 @@ export class StreamableHTTPServerTransport implements Transport {
private _requestResponseMap: Map<RequestId, JSONRPCMessage> = new Map();
private _initialized: boolean = false;
private _enableJsonResponse: boolean = false;
private _standaloneSseStreamId: string = 'standalonesse';
private _standaloneSseStreamId: string = '_GET_stream';
private _eventStore?: EventStore;
sessionId?: string | undefined;