JSONRPCNotification

data class JSONRPCNotification(val method: String, val params: JsonElement? = null) : JSONRPCMessage(source)

A notification which does not expect a response.

Notifications are fire-and-forget messages. They do not have an id and the recipient does not send any response (neither success nor error).

Examples: progress updates, resource change notifications, log messages.

Constructors

Link copied to clipboard
constructor(method: String, params: JsonElement? = null)

Properties

Link copied to clipboard
open override val jsonrpc: String

Always "2.0" to indicate JSON-RPC 2.0 protocol.

Link copied to clipboard

The name of the notification method (e.g., "notifications/progress", "notifications/resources/updated").

Link copied to clipboard

Optional parameters for the notification. Structure depends on the specific method.