Hierarchy (View Summary)

Constructors

Properties

appId: string
appSource?: string
attribution: Readonly<
    {
        connection?: Readonly<Partial<ConnectionAttribution>>;
        workload?: Readonly<WorkloadAttributionDefaults>;
    },
>
listeners: {
    connected?: (data: { network: SupernetType }) => void[];
    connecting?: (data: { network: SupernetType }) => void[];
    disconnected?: (data: { code: ErrorCode; reason: string }) => void[];
} = {}

Type declaration

  • Optionalconnected?: (data: { network: SupernetType }) => void[]

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

  • Optionalconnecting?: (data: { network: SupernetType }) => void[]

    ApiClient#connecting - The client is attempting to connect to the server.

  • Optionaldisconnected?: (data: { code: ErrorCode; reason: string }) => void[]

    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.

logger: Logger

Accessors

Methods

  • Dispose of this client, disconnecting the socket and removing all event listeners. After calling this method, the client should not be used.

    Returns void

  • Parameters

    • isAuthenticated: boolean

    Returns void