Fix cancellation notification mismatch

The server registers a notification handler on `CancelledNotificationSchema`, but is never called on client cancellation because of a mismatch in the method name. This fixes that mismatch.
This commit is contained in:
Eric Fritz 2024-11-27 23:48:44 -06:00 • committed by GitHub
commit 3d15050960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -421,7 +421,7 @@ export abstract class Protocol<
this._transport
?.send({
jsonrpc: "2.0",
method: "cancelled",
method: "notifications/cancelled",
params: {
requestId: messageId,
reason: String(reason),