Interface: RpcRequest<MParam, TParam>
A rpc call is represented by sending a Request object to a Server.
Type parameters
Name | Type |
---|---|
MParam | string |
TParam | unknown |
Properties
id
• Optional
id: null
| string
| number
An identifier established by the Client that MUST contain a String
, Number
,
or NULL
value if included.
If it is not included it is assumed to be a notification.
The value SHOULD normally not be Null and Numbers SHOULD NOT contain fractional parts
Defined in
packages/core/src/JSONRPC/types.ts:59
jsonrpc
• jsonrpc: "2.0"
A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".
Defined in
packages/core/src/JSONRPC/types.ts:40
method
• method: MParam
A String containing the name of the method to be invoked.
Defined in
packages/core/src/JSONRPC/types.ts:45
params
• Optional
params: TParam
A Structured value that holds the parameter values to be used during the invocation of the method.
Defined in
packages/core/src/JSONRPC/types.ts:51