JSONRPCNotification

data class JSONRPCNotification<out P>(val method: String, val params: P? = null) : JSONRPCMessage<P> (source)

A JSON-RPC 2.0 notification — a request without an id field.

The server MUST NOT reply to a notification.

Type Parameters

P

The type of the params field.

Constructors

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

Properties

Link copied to clipboard

The JSON-RPC version string. Always "2.0".

Link copied to clipboard
@SerialName(value = "method")
open override val method: String

The name of the method to invoke.

Link copied to clipboard
@SerialName(value = "params")
open override val params: P?

Optional structured parameters for the method.