Demo
Chat in 10 Lines of Code
Send and receive chat messages between browser tabs with a few lines of plain JavaScript. A minimal PubNub starter built on publish and subscribe.
This tutorial will guide you through creating a simple chat app using the flexible PubNub SDK: Sending and receiving chat messages, member presence and looking up past messages.
Chat between browser tabs in the demo, or clone the tutorial app and build it step by step.
Demo
Send and receive chat messages between browser tabs with a few lines of plain JavaScript. A minimal PubNub starter built on publish and subscribe.
GitHub
One folder per step of the tutorial, from the chat layout to message timestamps. It runs on the demo keys as is; for your own app, replace 'demo' in index.html with your keys and open it in two tabs.
git clone https://github.com/PubNubDevelopers/Javascript-Chat-Tutorial-App.gitIn this getting started tutorial you will develop an in-app chat application using the PubNub SDK and backed by PubNub's reliable and scalable architecture: