Home / Companies / Agora / Blog / Post Details
Content Deep Dive

Adding PubNub Chat to an Agora Video Web App

Blog post from Agora

Post Details
Company
Date Published
Author
Hermes Frangoudis
Word Count
1,271
Language
English
Hacker News Points
-
Summary

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.