Merge pull request #185 from cliffhall/add-logging-message-handler

Add support for server logging messages
This commit is contained in:
Ola Hungerford 2025-03-15 09:44:22 -07:00 • committed by GitHub
commit cedf02d152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {