Class Conversations<ContentTypes>

Conversations allows you to view ongoing 1:1 messaging sessions with another wallet

Type Parameters

  • ContentTypes = any

Constructors

Methods

  • Streams messages from all conversations.

    When a new conversation is initiated with the client's address, this function will automatically register it and add it to the list of conversations to watch. Callers should be aware the first messages in a newly created conversation are picked up on a best effort basis and there are other potential race conditions which may cause some newly created conversations to be missed.

    Parameters

    Returns Promise<AsyncGenerator<DecodedMessage<ContentTypes>, any, unknown>>