Protected
_authProtected
_loggerProtected
listenersOptional
balanceUpdate?: (data: BalanceData) => void[]Optional
connected?: (data: ServerConnectData) => void[]WebSocketClient#connected - WebSocket connection opened
Optional
disconnected?: (data: ServerDisconnectData) => void[]WebSocketClient#disconnected - WebSocket connection was closed
Optional
jobError?: (data: JobErrorData) => void[]WebSocketClient#jobError - Job error occurred
Optional
jobProgress?: (data: JobProgressData) => void[]WebSocketClient#jobProgress - Job progress update
Optional
jobResult?: (data: JobResultData) => void[]WebSocketClient#jobResult - Job result received
Optional
jobState?: (data: JobStateData) => void[]WebSocketClient#jobState - Job state changed
Optional
swarmModels?: (data: Record<string, number>) => void[]WebSocketClient#swarmModels - Received swarm model count
Protected
emitDispatch an event to all listeners
Remove an event listener
Add an event listener, returns a function that can be called to remove the listener
Add an event listener that will be called only once
WebSocketClient#balanceUpdate - Received balance update