JavaScript
Run Your Application
Open the index.html file in two browser tabs. You might want to position these side-by-side so that you can see both users' view of the chat simultaneously.
Note: If you receive a permissions error, either use two different browsers, or open one of your tabs as an incognito/private tab.
First, log in to the application in both browser tabs, using Alice and Bob respectively.
Then, start sending messages from one user to the other. Messages received from the other user should appear in red, the messages you send should appear in black.
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
Install Client SDK9
Create the UI10
Authenticate your Users11
Instantiate VonageClient and create a Session12
Show the message history13
Send a message14
Run your application15
What's next?