In useConnection.ts,

- import LoggingMessageNotificationSchema
- set onNotification as notification handler for LoggingMessageNotificationSchema
This commit is contained in:
cliffhall
2025-03-13 15:17:17 -04:00
parent c77252900a
commit d70e6dc0e8

View File

@@ -10,6 +10,7 @@ import {
ListRootsRequestSchema,
ProgressNotificationSchema,
ResourceUpdatedNotificationSchema,
LoggingMessageNotificationSchema,
Request,
Result,
ServerCapabilities,
@@ -258,6 +259,11 @@ export function useConnection({
ResourceUpdatedNotificationSchema,
onNotification,
);
client.setNotificationHandler(
LoggingMessageNotificationSchema,
onNotification,
);
}
if (onStdErrNotification) {