Properties
bearerToken
bearerToken: string = ""
Private opts
opts: ConnectOptions
Methods
call
- call(method: string, params: any, cb: function): void
-
Parameters
-
method: string
-
params: any
-
cb: function
-
- (err: any, result: any): void
Returns void
Private makeRequest
- makeRequest(method: string, id: string, params: any): object
-
Parameters
-
method: string
-
id: string
-
params: any
Returns object
-
id: string
-
jsonrpc: string
-
method: string
-
params: any
Static fromOptions
- fromOptions(opts: ConnectOptions): Client
Client handles connection, authentication and invocation of methods of an RPC service
Client