Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConversationV2<ContentTypes>

ConversationV2

Type parameters

  • ContentTypes

Hierarchy

  • ConversationV2

Implements

Index

Constructors

  • new ConversationV2<ContentTypes>(client: Client<ContentTypes>, topic: string, peerAddress: string, createdAt: Date, context: undefined | InvitationContext): ConversationV2<ContentTypes>

Properties

client: Client<ContentTypes>

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

conversationVersion: "v2" = ...
createdAt: Date

Timestamp the conversation was created at

peerAddress: string

The wallet address of the other party in the conversation

topic: string

A unique identifier for a conversation. Each conversation is stored on the network on one topic

Accessors

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

Methods

  • createMessage(payload: Uint8Array, timestamp?: Date): Promise<MessageV2>
  • prepareMessage(content: any, options?: SendOptions): Promise<PreparedMessage>
  • processEnvelope(env: Envelope): Promise<MessageV2>

Generated using TypeDoc