Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RPCClientImpl

JSON RPC 2.0 client implementation.

Works for both the browser and Node.js

Hierarchy

  • RPCClientImpl

Implements

Index

Constructors

constructor

Properties

Private _id

_id: number = 0

Private _subscribers

_subscribers: {}

Type declaration

Private _url

_url: any

Private _ws

_ws: WebSocket

Methods

createWebSocket

  • createWebSocket(url: string): Promise<void>

request

  • request(method: string, params: any[]): Promise<any>

subscribe

Generated using TypeDoc