JavaScript
Fetch the Conversation
Now that you have a valid user token, it's time to initialize a new NexmoClient
instance and fetch the conversation to use for our chat app.
async function run(userToken) {
let client = new NexmoClient({ debug: true });
let app = await client.login(userToken);
conversation = await app.getConversation(CONVERSATION_ID);
}
Creating a web-based chat app
Create a web application that enables users to message each other
Also available on:
Steps
15