getOrCreateConversation method

ConversationBuilder getOrCreateConversation(
  1. String conversationId
)

A method used to either fetch or create a conversation.

@remarks Returns a ConversationBuilder object that encapsulates a conversation between me (given in the constructor) and zero or more other participants. Use {@link ConversationBuilder.setParticipant} and {@link ConversationBuilder.setAttributes} on the returned object to further set up your conversation.

@param conversationId - A unique identifier for this conversation, such as a channel name or topic ID. Any user with access to this ID can join this conversation. {@link https://talkjs.com/docs/Reference/Concepts/Conversations.html | Read about how to choose a good conversation ID for your use case}. If you want to make a simple one-on-one conversation, consider using {@link oneOnOneId} to generate one.

Implementation

external ConversationBuilder getOrCreateConversation(String conversationId);