This demo is best experienced on a larger device.

Chat in 10 Lines of Code

How easy is it to create a chat app with the PubNub SDK? This demo shows how you can implement a JavaScript chat application in fewer than 10 lines code.

About this demo

This chat demo shows how you can use PubNub's JavaScript SDK to easily and quickly incorporate chat into your application

The PubNub SDK is the most flexible and customizable way to add chat features like direct and group messaging, typing indicators and message reactions. PubNub offers a highly-scalable architecture with low-latency delivery

Demo Features

  • Messages - Publish messages to other participants

  • Subscriptions - Listen for messages from other participants