SubscribeRequest

Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.

After subscribing, the server will send ResourceUpdatedNotification messages whenever the subscribed resource is modified. This requires the server to support the subscribe capability in ServerCapabilities.resources.

Constructors

Link copied to clipboard
constructor(params: SubscribeRequestParams)
constructor(uri: String, meta: RequestMeta? = null)

Properties

Link copied to clipboard

Metadata for this request. May include a progressToken for out-of-band progress notifications.

Link copied to clipboard
open override val method: Method
Link copied to clipboard
open override val params: SubscribeRequestParams

The parameters specifying which resource URI to subscribe to.

Link copied to clipboard
val uri: String

The URI of the resource to subscribe to.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.