final | |
|---|---|
readonly | |
extends |
JsonRpcNotification<'notifications/cancelled', array{jsonrpc: '2.0', method: 'notifications/cancelled', params: template-type<CancelledNotificationParams, NotificationParams, 'T'>}> |
implements |
ClientNotification, ServerNotification |
This notification is sent by the client to indicate that it is cancelling a request it previously issued. On stdio, the server also sends this notification, solely to terminate a subscriptions/listen stream: it
references the ID of the subscriptions/listen request that opened the stream. Servers MUST NOT use this
notification to cancel any other request. The request SHOULD still be in-flight, but due to communication latency, it is always possible that this
notification MAY arrive after the request has already finished. This notification indicates that the result will be unused, so any associated processing SHOULD cease.
| Methods | ||
|---|---|---|
public
|
__construct(CancelledNotificationParams $params)
|
# |
public
static
|
getMethod(): string
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcNotification |
|---|
jsonSerialize() |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
readonly
|
CancelledNotificationParams
|
$params
|
# |