File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ function connectSSEBackend() {
39
39
const timer = setTimeout ( ( ) => reject ( new Error ( "SSE Backend Connection timeout" ) ) , 10_000 ) ;
40
40
const source = new EventSource ( backendUrlSse ) ;
41
41
source . onopen = ( evt : Event ) => resolve ( clearTimeout ( timer ) ) ;
42
- source . addEventListener ( "endpoint" , ( e ) => ( backendUrlMsg = `${ baseUrl } ${ e . data } ` ) ) ;
42
+ source . addEventListener ( "endpoint" , ( e ) => {
43
+ backendUrlMsg = `${ baseUrl } ${ e . data } ` ;
44
+ debug ( `--- SSE backend sent "endpoint" event (${ e . data } ) ==> Setting message endpoint URL: "${ backendUrlMsg } "` ) ;
45
+ } ) ;
43
46
source . addEventListener ( "error" , ( e ) => reject ( e ) ) ;
44
47
source . addEventListener ( "message" , ( e ) => respond ( e . data ) ) ; // forward to Claude Desktop App via stdio transport
45
48
source . addEventListener ( "message" , ( e ) => debug ( `<-- ${ e . data } ` ) ) ;
You can’t perform that action at this time.
0 commit comments