Introduction to the PubNub Data Stream API

2 min readJan 22, 2014

data pushPubNub Data Streams allows you to establish and maintain persistent socket connections to any device (mobile, browser, desktop, and server), and push data to global audiences in 1/10 of a second or less. PubNub utilizes the Publish/Subscribe model for real-time data streaming and device signalling, supporting all the capabilities of WebSockets, SignalR, Socket.IO, WebRTC Data Channel and other streaming protocols.

PubNub Broadcast allows you to stream data to millions of users simultaneously, for use in apps like second screen, multiplayer games, and audience participation apps. PubNub Unicast is for one-to-one device signaling, for use in apps like call triggering, machine to machine, and location tracking.

Getting Started with the Data Stream API

Want to see it in action? Want to get started right away?

In the video below, our Founder and CTO Stephen Blum walks you through building a simple PubNub Data Streams app the the data stream API. All you need is a computer, a standard text editor, and a web browser.

Additional Data Stream API Resources

We also have a Getting Started Guide with PubNub Data Streams with our JavaScript SDK in our recently revamped documentation. From channels to API keys to API functions, you can find everything you need to know about Data Push and JavaScript there!

Need some inspiration? Here are 5 things you can build using PubNub Data Streams.

Data Stream APIDemos

Get Started
Sign up for free and stream data in real time with Data Streams

More from PubNub

How to Create a Dating App: 7 Steps to Fit Any Design
Insights6 minMar 15, 2023

How to Create a Dating App: 7 Steps to Fit Any Design

There are common underlying technologies for a dating app, and in this post, we’ll talk about the major technologies and designs...

Michael Carroll

Michael Carroll

How to Create a Real-time Public Transportation Schedule App
Build6 minMar 14, 2023

How to Create a Real-time Public Transportation Schedule App

How to use geohashing, JavaScript, Google Maps API, and BART API to build a real-time public transit schedule app.

Michael Carroll

Michael Carroll

How to Create Real-Time Vehicle Location Tracking App
Build2 minMar 9, 2023

How to Create Real-Time Vehicle Location Tracking App

How to track and stream real-time vehicle location on a live-updating map using EON, JavaScript, and the Mapbox API.

Michael Carroll

Michael Carroll

Talk to an expert