Adding PubNub Chat to an Agora Video Web App
This tutorial demonstrates how to integrate the PubNub Web SDK with an existing web app that uses the Agora Web SDK for voice and video communication, adding text-based chat functionality. The project setup involves using a code base from a previous tutorial on building a group video chat web app. The build phase covers modifying the input form to add inputs for PubNub keys, adding the chat UI, integrating a PubNub client, connecting the PubNub client to a channel, and sending/receiving messages in the channel. Keyboard shortcuts are disabled when the chat window is visible, and testing can be done locally or via Ngrok for remote testing. The complete code is available on GitHub.
Company
Agora
Date published
Oct. 29, 2020
Author(s)
Hermes Frangoudis
Word count
1271
Language
English
Hacker News points
None found.