CancelledNotificationParams

data class CancelledNotificationParams(val requestId: RequestId, val reason: String? = null, val meta: JsonObject? = null) : NotificationParams(source)

Parameters for a notifications/cancelled notification.

Constructors

Link copied to clipboard
constructor(requestId: RequestId, reason: String? = null, meta: JsonObject? = null)

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this notification.

Link copied to clipboard

An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.

Link copied to clipboard

The ID of the request to cancel. This MUST correspond to the ID of a request previously issued in the same direction.