xmpp_p2p
    Preparing search index...

    Interface XmppPubSubContext

    Execution context used while processing pubsub event payloads.

    interface XmppPubSubContext {
        localJid: string;
        emitError(error: unknown): void;
        emitPubSubMessage(message: XmppPubSubMessage): void;
        feedTopicForPeer(peerId: string): string;
        getEncryptedTopicSecret(topic: string): string | undefined;
        recordAttachment(attachment: XmppAttachment): Promise<boolean>;
        recordCollectionPost(post: XmppCollectionPost): Promise<boolean>;
        recordFeedPost(post: XmppFeedPost): Promise<boolean>;
        recordFollower(follower: XmppFeedFollower): Promise<boolean>;
        recordUploadManifest(
            manifest: XmppUploadManifest,
            sourceJid: string,
        ): Promise<boolean>;
        removeFollower(feedPeerId: string, followerPeerId: string): Promise<void>;
    }
    Index

    Properties

    localJid: string

    Methods

    • Parameters

      • topic: string

      Returns string | undefined

    • Parameters

      • feedPeerId: string
      • followerPeerId: string

      Returns Promise<void>