Interface IConnectionManager

interface IConnectionManager {
    #private: any;
    configuredPubsubTopics: string[];
    addEventListener<K>(type, listener, options?): void;
    dispatchEvent(event): boolean;
    dropConnection(peerId): Promise<void>;
    getPeersByDiscovery(): Promise<PeersByDiscoveryResult>;
    listenerCount(type): number;
    removeEventListener<K>(type, listener?, options?): void;
    safeDispatchEvent<Detail>(type, detail?): boolean;
    stop(): void;
}

Hierarchy

Implemented by

Properties

#private: any
configuredPubsubTopics: string[]

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Parameters

    • peerId: PeerId

    Returns Promise<void>

  • Parameters

    • type: string

    Returns number

  • Type Parameters

    Parameters

    Returns void

  • Type Parameters

    • Detail

    Parameters

    Returns boolean

  • Returns void

Generated using TypeDoc