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

Type declaration

  • connected: { network: SupernetType }

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

  • connecting: { network: SupernetType }

    ApiClient#connecting - The client is attempting to connect 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.