Merge pull request #185 from cliffhall/add-logging-message-handler
Add support for server logging messages
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user