interface ISubscription {
    ping(peerId?): Promise<SDKProtocolResult>;
    subscribe<T>(decoders, callback, options?): Promise<SDKProtocolResult>;
    unsubscribe(contentTopics): Promise<SDKProtocolResult>;
    unsubscribeAll(): Promise<SDKProtocolResult>;
}

Methods

  • Parameters

    • contentTopics: string[]

    Returns Promise<SDKProtocolResult>