Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Conversations

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

Hierarchy

  • Conversations

Index

Constructors

Methods

  • Returns a stream of any newly created conversations. Will dedupe to not return the same conversation twice in the same stream. Does not dedupe any other previously seen conversations

    Parameters

    • Optional onConnectionLost: OnConnectionLostCallback

    Returns Promise<Stream<Conversation>>

  • streamAllMessages(onConnectionLost?: OnConnectionLostCallback): Promise<AsyncGenerator<DecodedMessage, any, unknown>>
  • 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

    • Optional onConnectionLost: OnConnectionLostCallback

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

Generated using TypeDoc