Optional
sandboxIf true
, client will point to the sandbox API endpoint.
Optional
loggerProvide a logging function if you would like the client to log internal messages. The function
should match console.log
signature.
Rest
...data: any[]Optional
message: anyRest
...optionalParams: any[]new WebSocketClient({
logger: console.log
})
Optional
clientMay be used to uniquely identify this client if the logger function is utilized.
Optional
shouldIf true
(default), automatically reconnects when connection is closed by the server or network errors
WebSocket constructor options which will only allow you to subscribe to public subscriptions.
new WebSocketClient()
is valid for public subscriptions.Example