JavaScript
Create the Users
Each participant in a Conversation is represented by a User object and must be authenticated by the Client SDK. In a production application, you would typically store this user information in a database.
Execute the following commands to create two users, Alice and Bob who will log in to the Vonage Client and participate in the chat (Conversation).
vonage apps:users:create Alice vonage apps:users:create Bob
This will return user IDs similar to the following:
User created: USR-aaaaaaaa-bbbb-cccc-dddd-0123456789ab
Make a note of these as you'll need them later.
Creating a web-based chat app
Create a web application that enables users to message each other
手順
1
Introduction to this task2
Prerequisites3
Create a Vonage Application4
Create a conversation5
Create the users6
Add users to the conversation7
Generate JWTs8
Create the UI9
Authenticate your Users10
Fetch the conversation11
Show the message history12
Send a message13
Add typing indicators14
Run your application15
What's next?