SocketEventMap: {
    balanceUpdate: BalanceData;
    connected: ServerConnectData;
    disconnected: ServerDisconnectData;
    jobError: JobErrorData;
    jobProgress: JobProgressData;
    jobResult: JobResultData;
    jobState: JobStateData;
    swarmModels: Record<string, number>;
}

Type declaration

  • balanceUpdate: BalanceData

    WebSocketClient#balanceUpdate - Received balance update

  • connected: ServerConnectData

    WebSocketClient#connected - WebSocket connection opened

  • disconnected: ServerDisconnectData

    WebSocketClient#disconnected - WebSocket connection was closed

  • jobError: JobErrorData

    WebSocketClient#jobError - Job error occurred

  • jobProgress: JobProgressData

    WebSocketClient#jobProgress - Job progress update

  • jobResult: JobResultData

    WebSocketClient#jobResult - Job result received

  • jobState: JobStateData

    WebSocketClient#jobState - Job state changed

  • swarmModels: Record<string, number>

    WebSocketClient#swarmModels - Received swarm model count