# Functions
DefaultHTTPClient is used to create an http client with some default parameters.
MaxReconnectAttempts sets the maximum number of reconnect attempts before returning an error.
New returns a Client pointed at the given address.
NewURI returns a new client.
NewWithHTTPClient returns a Client pointed at the given address using a custom http client.
NewWS returns a new client.
OnReconnect sets the callback, which will be called every time after successful reconnect.
PingPeriod sets the duration for sending websocket pings.
ReadWait sets the amount of time to wait before a websocket read times out.
WriteWait sets the amount of time to wait before a websocket write times out.
# Constants
URIClientRequestID in a request ID used by URIClient.
# Structs
Client is a JSON-RPC client, which sends POST HTTP requests to the remote server.
RequestBatch allows us to buffer multiple request/response structures into a single batch request.
URIClient is a JSON-RPC client, which sends POST form HTTP requests to the remote server.
WSClient is a JSON-RPC client, which uses WebSocket for communication with the remote server.
# Interfaces
Caller implementers can facilitate calling the JSON-RPC endpoint.
HTTPClient is a common interface for JSON-RPC HTTP clients.