ResourceUpdatedNotification

@Serializable
data class ResourceUpdatedNotification(val uri: String, val _meta: JsonObject = EmptyJsonObject) : ServerNotification, WithMeta(source)

A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.

Constructors

Link copied to clipboard
constructor(uri: String, _meta: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard
open override val method: Method
Link copied to clipboard
val uri: String

The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.

Functions

Link copied to clipboard

Converts the notification to a JSON-RPC notification.