Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JSONRPCHttpClient

JSON RPC client using HTTP (fetch) as transport.

Hierarchy

  • JSONRPCHttpClient

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

client

client: JSONRPCClient

JSON-RPC client used to make requests

Methods

Private handleRequest

  • handleRequest(request: JSONRPCRequest): Promise<void>
  • Request handler for the JSON-RPC client. This function is called by the JSON-RPC library after forming the RPC request.

    Parameters

    • request: JSONRPCRequest

      JSON-RPC request to send to the server

    Returns Promise<void>

request

  • request(method: string, data: any): PromiseLike<any>