Readonly
authOptional
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
Providing the required WebSocketClientAuthOptions object will allow the client to make authenticated subscriptions as well as public subscriptions
Example
See
docs WebSocket API Documentation