Real-time Chat Blog

Web Messaging API in 5 Steps: Quick Start Tutorial

2 min readJoe Hanson on Aug 18, 2014
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

We've released our 5 step quick start tutorial on using our web messaging API built with PubNub to build a web messaging application.

Good News

Good News! We’ve launched an all new Chat Resource Center.

We recommend checking out our new Chat Resource Center, which includes overviews, tutorials, and design patterns for building and deploying mobile and web chat.

Take me to the Chat Resource Center →

We talk a lot about how easy it is to use the PubNub web messaging API. Well, it’s not just marketing jargon. With the release of our new Quick Start Tutorial, we’ll show you how to build a messaging app with our web messaging API in five steps.

Web Messaging API

We wanted to show you how easy and simple it is to get up and running with PubNub. The Quick Start tutorial is broken up into 5 steps, and walks you through installing the libraries, publishing messages, subscribing to messages, sending messages to other devices, and you’re done! After that, you can check out other PubNub features including Presence, Storage & Playback and PubNub Access Manager.

Web Messaging API 1

Just a reminder, to get your unique pub/sub keys, you’ll first need to sign up for a PubNub account. Once you sign up, you can get your unique PubNub keys in the PubNub Developer Portal. Our free Sandbox tier should give you all the bandwidth you need to build and test your messaging app with the web messaging API.

Additional Web Messaging API Resources

That’s the simplest we can make it. But maybe you want a little bit more and you’re building out a more robust messaging layer. This pub/sub with PubNub Data Streams is at the core of it, but we’ve got a lot of demos using our web messaging API:

More from PubNub

Can Empathy Exist in the Metaverse
News May 16, 20221 min read

Can Empathy Exist in the Metaverse

A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.

PubNub Staff

PubNub Staff

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff

Another Step Towards Data Security: ISO-27001 Implementation
BuildMay 2, 20221 min read

Another Step Towards Data Security: ISO-27001 Implementation

Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.

PubNub Staff

PubNub Staff