Skip to content

Commit 1451d0e

Browse files
committed
Explicitly allow cancelled notifications without any capability
1 parent 15bd2dc commit 1451d0e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/client/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ export class Client<
244244
// No specific capability required for initialized
245245
break;
246246

247+
case "notifications/cancelled":
248+
// Cancellation notifications are always allowed
249+
break;
250+
247251
case "notifications/progress":
248252
// Progress notifications are always allowed
249253
break;

src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ export class Server<
157157
}
158158
break;
159159

160+
case "notifications/cancelled":
161+
// Cancellation notifications are always allowed
162+
break;
163+
160164
case "notifications/progress":
161165
// Progress notifications are always allowed
162166
break;

0 commit comments

Comments
 (0)