ApiClientEvents: {
    connected: { network: SupernetType };
    disconnected: { code: ErrorCode; reason: string };
}

Type declaration

  • connected: { network: SupernetType }

    ApiClient#connected - The client has been connected to the server.

  • disconnected: { code: ErrorCode; reason: string }

    ApiClient#disconnected - The client has been disconnected by the server, either authentication is lost or the server is unreachable.This event is not triggered when the client manually disconnects.