Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Class ConversationApi

    Index

    Methods

    • Create a conversation Creates a new empty conversation. It is generally not needed to create a conversation explicitly since sending or receiving a message automatically creates a new conversation if it does not already exist between the given app and contact. Creating empty conversation is useful if the metadata of the conversation should be populated when the first message in the conversation is a contact message or the first message in the conversation comes out-of-band and needs to be injected with InjectMessage endpoint.

      Parameters

      Returns Promise<Conversation.Conversation>

    • Inject a message This operation injects a conversation message into a specific conversation.

      Parameters

      Returns Promise<any>

    • Stop conversation This operation stops the referenced conversation, if the conversation is still active. In Conversation mode, a new conversation will be created if a new message is exchanged between the app or contact that was part of the stopped conversation.

      Parameters

      Returns Promise<any>