In useConnection.ts,
- import LoggingMessageNotificationSchema - set onNotification as notification handler for LoggingMessageNotificationSchema
This commit is contained in:
parent
c77252900a
commit
d70e6dc0e8
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import {
|
||||||
ListRootsRequestSchema,
|
ListRootsRequestSchema,
|
||||||
ProgressNotificationSchema,
|
ProgressNotificationSchema,
|
||||||
ResourceUpdatedNotificationSchema,
|
ResourceUpdatedNotificationSchema,
|
||||||
|
LoggingMessageNotificationSchema,
|
||||||
Request,
|
Request,
|
||||||
Result,
|
Result,
|
||||||
ServerCapabilities,
|
ServerCapabilities,
|
||||||
|
|
@ -258,6 +259,11 @@ export function useConnection({
|
||||||
ResourceUpdatedNotificationSchema,
|
ResourceUpdatedNotificationSchema,
|
||||||
onNotification,
|
onNotification,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
client.setNotificationHandler(
|
||||||
|
LoggingMessageNotificationSchema,
|
||||||
|
onNotification,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (onStdErrNotification) {
|
if (onStdErrNotification) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue