JavaScript
Introduction
In this task, you will learn how to create and configure a Client SDK Application and then code a web app that enables two users to send messages to each other.
First, you will create a Conversation and two Users. Then, you will authenticate these Users and add them to the Conversation as Members.
Finally, you will implement chat functionality in your application, including the ability to view and send messages.
If you would like to follow along without building the app yourself and even run the application on Stackblitz with one click, the completed project is available on Github - please see the messaging-js folder.
This tutorial uses @vonage/client-sdk version 1.0 or greater
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?