@@ -123,7 +123,7 @@ export class StreamableHTTPClientTransport implements Transport {
123123 throw new UnauthorizedError ( ) ;
124124 }
125125
126- return await this . _startOrAuthStandaloneSSE ( ) ;
126+ return await this . _startOrAuthSse ( ) ;
127127 }
128128
129129 private async _commonHeaders ( ) : Promise < Headers > {
@@ -144,7 +144,7 @@ export class StreamableHTTPClientTransport implements Transport {
144144 ) ;
145145 }
146146
147- private async _startOrAuthStandaloneSSE ( lastEventId ?: string ) : Promise < void > {
147+ private async _startOrAuthSse ( lastEventId ?: string ) : Promise < void > {
148148 try {
149149 // Try to open an initial SSE stream with GET to listen for server messages
150150 // This is optional according to the spec - server may not support it
@@ -238,7 +238,7 @@ export class StreamableHTTPClientTransport implements Transport {
238238 // Schedule the reconnection
239239 setTimeout ( ( ) => {
240240 // Use the last event ID to resume where we left off
241- this . _startOrAuthStandaloneSSE ( lastEventId ) . catch ( error => {
241+ this . _startOrAuthSse ( lastEventId ) . catch ( error => {
242242 this . onerror ?.( new Error ( `Failed to reconnect SSE stream: ${ error instanceof Error ? error . message : String ( error ) } ` ) ) ;
243243 // Schedule another attempt if this one failed, incrementing the attempt counter
244244 this . _scheduleReconnection ( lastEventId , attemptCount + 1 ) ;
@@ -343,7 +343,7 @@ export class StreamableHTTPClientTransport implements Transport {
343343 const { lastEventId, onLastEventIdUpdate } = options ?? { } ;
344344 if ( lastEventId ) {
345345 // If we have at last event ID, we need to reconnect the SSE stream
346- this . _startOrAuthStandaloneSSE ( lastEventId ) . catch ( err => this . onerror ?.( err ) ) ;
346+ this . _startOrAuthSse ( lastEventId ) . catch ( err => this . onerror ?.( err ) ) ;
347347 return ;
348348 }
349349
@@ -390,7 +390,7 @@ export class StreamableHTTPClientTransport implements Transport {
390390 // if it's supported by the server
391391 if ( isJSONRPCNotification ( message ) && message . method === "notifications/initialized" ) {
392392 // Start without a lastEventId since this is a fresh connection
393- this . _startOrAuthStandaloneSSE ( ) . catch ( err => this . onerror ?.( err ) ) ;
393+ this . _startOrAuthSse ( ) . catch ( err => this . onerror ?.( err ) ) ;
394394 }
395395 return ;
396396 }
0 commit comments