JSONRPCMessage

Base type for JSON-RPC 2.0 messages sent from client to server.

A message is either a JSONRPCRequest (which carries an id and expects a response) or a JSONRPCNotification (which has no id and expects no response).

Type Parameters

P

The type of the params field.

See also

Inheritors

Properties

Link copied to clipboard

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

Link copied to clipboard
abstract val method: String

The name of the method to be invoked.

Link copied to clipboard
abstract val params: P?

Structured parameter values for the method invocation. May be null if the method takes no parameters.