Skip to content

Commit cedf02d

Browse files
authored
Merge pull request #185 from cliffhall/add-logging-message-handler
Add support for server logging messages
2 parents 56932e8 + f01f02d commit cedf02d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/src/lib/hooks/useConnection.ts

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
ListRootsRequestSchema,
1111
ProgressNotificationSchema,
1212
ResourceUpdatedNotificationSchema,
13+
LoggingMessageNotificationSchema,
1314
Request,
1415
Result,
1516
ServerCapabilities,
@@ -258,6 +259,11 @@ export function useConnection({
258259
ResourceUpdatedNotificationSchema,
259260
onNotification,
260261
);
262+
263+
client.setNotificationHandler(
264+
LoggingMessageNotificationSchema,
265+
onNotification,
266+
);
261267
}
262268

263269
if (onStdErrNotification) {

0 commit comments

Comments
 (0)