Hierarchy (View Summary)

Constructors

Properties

_auth: null | AuthData = null
_logger: Logger
appId: string
baseUrl: string
listeners: {
    balanceUpdate?: (data: BalanceData) => void[];
    connected?: (data: ServerConnectData) => void[];
    disconnected?: (data: ServerDisconnectData) => void[];
    jobError?: (data: JobErrorData) => void[];
    jobProgress?: (data: JobProgressData) => void[];
    jobResult?: (data: JobResultData) => void[];
    jobState?: (data: JobStateData) => void[];
    swarmModels?: (data: Record<string, number>) => void[];
} = {}

Type declaration

  • OptionalbalanceUpdate?: (data: BalanceData) => void[]

    WebSocketClient#balanceUpdate - Received balance update

  • Optionalconnected?: (data: ServerConnectData) => void[]

    WebSocketClient#connected - WebSocket connection opened

  • Optionaldisconnected?: (data: ServerDisconnectData) => void[]

    WebSocketClient#disconnected - WebSocket connection was closed

  • OptionaljobError?: (data: JobErrorData) => void[]

    WebSocketClient#jobError - Job error occurred

  • OptionaljobProgress?: (data: JobProgressData) => void[]

    WebSocketClient#jobProgress - Job progress update

  • OptionaljobResult?: (data: JobResultData) => void[]

    WebSocketClient#jobResult - Job result received

  • OptionaljobState?: (data: JobStateData) => void[]

    WebSocketClient#jobState - Job state changed

  • OptionalswarmModels?: (data: Record<string, number>) => void[]

    WebSocketClient#swarmModels - Received swarm model count

Accessors

Methods