JavaScript
If you are planning to use JavaScript to develop your application, you'll need to install (or update) the latest version of the Client SDK.
Create a new project directory and change into it.
mkdir in-app-messaging cd in-app-messaging
Then run the following command:
npm init npm install @vonage/client-sdk -s
This will install the Client SDK into the node_modules directory within your project folder.
If you already have the Client SDK installed the above command will upgrade your Client SDK to the latest version.
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?