JavaScript
Add Users to the Conversation
You must now add your Users as Members of the Conversation using Nexmo CLI.
To add USER1_NAME
to the conversation replace CONVERSATION_ID
in the command below with your conversation Id generated previously (CON-...
) and run the command:
nexmo member:add CONVERSATION_ID action=join channel='{"type":"app"}' user_name=USER1_NAME
The output is ID of the Member:
Member added: MEM-aaaaaaa-bbbb-cccc-dddd-0123456789ab
Now you need to add the second user, USER2_NAME
to the Conversation. Similarly, replace the CONVERSATION_ID
and execute the command:
nexmo member:add CONVERSATION_ID action=join channel='{"type":"app"}' user_name=USER2_NAME
Member added: MEM-eeeeeee-...
Creating a web-based chat app
Create a web application that enables users to message each other
Also available on:
Steps
15