Constructors
constructor
-
Parameters
-
Default value baseUrl: string = "ws://localhost:46657"
-
Default value onError: function = defaultErrorHandler
Methods
connected
- connected(): Promise<void>
execute
- execute(request: JsonRpcRequest): Promise<JsonRpcSuccessResponse>
-
Parameters
Returns Promise<JsonRpcSuccessResponse>
Protected responseForRequestId
- responseForRequestId(id: JsonRpcId): Promise<JsonRpcResponse>
-
Parameters
Returns Promise<JsonRpcResponse>
Resolves as soon as websocket is connected. execute() queues requests automatically, so this should be required for testing purposes only.