Page tree
Skip to end of metadata
Go to start of metadata


Using the chat module you can create conversations with multiple other attendees. Attendees may be selected during a conversation from all your apps users.

Each user can send messages, including images or files and follow the other users messages in the conversation.

Configuration

 Nothing to configure here.

Usage

The chat module provides you the class ConversationModel, a container for a conversation containing all attended users as a list and all messages, covered by the MessageModel class.

At first create or load a user and configure the datastore:

 

Android  Expand source
JavaScript  Expand source


Now load an existing conversation model:


Android  Expand source
JavaScript  Expand source

 

Or create a new conversation model:

 

Android  Expand source
JavaScript  Expand source

 

After a conversation model exists, messages can be sent.

 

Android  Expand source
JavaScript  Expand source

 

Finally, all messages can be loaded.

 

Android  Expand source
JavaScript  Expand source

  • No labels