Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConversationV1<ContentTypes>

ConversationV1 allows you to view, stream, and send messages to/from a peer address

Type parameters

  • ContentTypes

Hierarchy

  • ConversationV1

Implements

Index

Constructors

  • new ConversationV1<ContentTypes>(client: Client<ContentTypes>, address: string, createdAt: Date): ConversationV1<ContentTypes>

Properties

context: undefined = undefined

Optional field containing the conversationId and metadata for V2 conversations. Will always be undefined on V1 conversations

conversationVersion: "v1" = ...
createdAt: Date

Timestamp the conversation was created at

peerAddress: string

The wallet address of the other party in the conversation

Accessors

  • get clientAddress(): string
  • get ephemeralTopic(): string
  • get topic(): string

Methods

  • decryptBatch(messages: MessageV1[], topic: string, throwOnError?: boolean): Promise<DecodedMessage<ContentTypes>[]>
  • prepareMessage(content: any, options?: SendOptions): Promise<PreparedMessage>
  • processEnvelope(__namedParameters: Envelope): Promise<MessageV1>

Generated using TypeDoc