Documentation - v0.32.4
    Preparing search index...

    Interface SessionConnectionParams

    interface SessionConnectionParams {
        crypto: ICryptoProvider;
        dc: BasicDcOption;
        dcFailures?: Map<string, number>;
        dcFallbacks?: BasicDcOption[];
        disableUpdates?: boolean;
        floodControl?: ConnectionFloodLimits;
        inactivityTimeout?: number;
        initConnection: RawInitConnectionRequest;
        isMainConnection: boolean;
        isMainDcConnection: boolean;
        layer: number;
        pingInterval: number;
        platform: ICorePlatform;
        readerMap: TlReaderMap;
        reconnectionStrategy: ReconnectionStrategy;
        salts: ServerSaltManager;
        testMode: boolean;
        transport: TelegramTransport;
        usePfs?: boolean;
        withUpdates?: boolean;
        writerMap: TlWriterMap;
    }

    Hierarchy

    • PersistentConnectionParams
      • SessionConnectionParams
    Index

    Properties

    DC to connect to. Updated when switching to one of dcFallbacks

    dcFailures?: Map<string, number>

    Addresses that recently failed to connect (address key → performance.now() of the failure). Shared between all connections to the same DC, so that they can skip these addresses

    dcFallbacks?: BasicDcOption[]

    Addresses of the same DC to try (in order) if connecting to dc fails

    disableUpdates?: boolean
    floodControl?: ConnectionFloodLimits

    if present, each connection gates its connects through its own flood controller

    inactivityTimeout?: number
    initConnection: RawInitConnectionRequest
    isMainConnection: boolean
    isMainDcConnection: boolean
    layer: number
    pingInterval: number
    platform: ICorePlatform
    readerMap: TlReaderMap
    reconnectionStrategy: ReconnectionStrategy
    salts: ServerSaltManager
    testMode: boolean
    usePfs?: boolean
    withUpdates?: boolean
    writerMap: TlWriterMap