Class: RpcNode<TSHandlers, TCHandlers>
Type parameters
Name |
---|
TSHandlers |
TCHandlers |
Hierarchy
RpcNode
Constructors
constructor
• new RpcNode<TSHandlers
, TCHandlers
>(transport
, requestHandlers
)
Type parameters
Name |
---|
TSHandlers |
TCHandlers |
Parameters
Name | Type |
---|---|
transport | Transport |
requestHandlers | TSHandlers |
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:11
Properties
_notify
• Private
_notify: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:13
_request
• Private
_request: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:12
handleMessage
• Private
handleMessage: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:17
handleRpcRequest
• Private
handleRpcRequest: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:16
handleRpcResponse
• Private
handleRpcResponse: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:19
ongoingRequests
• Private
ongoingRequests: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:10
requestHandlers
• Protected
requestHandlers: TSHandlers
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:9
transport
• Private
transport: any
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:8
Methods
notify
▸ notify<K
>(method
, params
): void
Type parameters
Name | Type |
---|---|
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
method | K |
params | MethodParamsIfExists <TCHandlers , K > |
Returns
void
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:15
onRequest
▸ Protected
Abstract
onRequest(request
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
request | RpcRequest <string , unknown > |
Returns
Promise
<unknown
>
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:18
request
▸ request<K
>(method
, params
): Promise
<ReturnTypeOfMethodIfExists
<TCHandlers
, K
>>
Type parameters
Name | Type |
---|---|
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
method | K |
params | MethodParamsIfExists <TCHandlers , K > |
Returns
Promise
<ReturnTypeOfMethodIfExists
<TCHandlers
, K
>>
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:14