File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
ListRootsRequestSchema ,
11
11
ProgressNotificationSchema ,
12
12
ResourceUpdatedNotificationSchema ,
13
+ LoggingMessageNotificationSchema ,
13
14
Request ,
14
15
Result ,
15
16
ServerCapabilities ,
@@ -258,6 +259,11 @@ export function useConnection({
258
259
ResourceUpdatedNotificationSchema ,
259
260
onNotification ,
260
261
) ;
262
+
263
+ client . setNotificationHandler (
264
+ LoggingMessageNotificationSchema ,
265
+ onNotification ,
266
+ ) ;
261
267
}
262
268
263
269
if ( onStdErrNotification ) {
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ const createTransport = async (req: express.Request) => {
66
66
return transport ;
67
67
} else if ( transportType === "sse" ) {
68
68
const url = query . url as string ;
69
- const headers : HeadersInit = { } ;
69
+ const headers : HeadersInit = {
70
+ Accept : "text/event-stream" ,
71
+ } ;
70
72
for ( const key of SSE_HEADERS_PASSTHROUGH ) {
71
73
if ( req . headers [ key ] === undefined ) {
72
74
continue ;
You can’t perform that action at this time.
0 commit comments