PubNub + jQTouch

0 MIN READ • May 10, 2010

PubNub JQTouch

May 20th, 2010: This page reacts with multiple devices. An Orientation Event will trigger a push notification publish(). When one device changes Orientation, all devices with the opposite Orientation will shift magenta! This requires at least one iPhone.

What is PubNub?

PubNub = communication between browser and mobile. Mobile to Mobile, Browser to Browser, Mobile to Browser. PubNub is a Push Service with a simple API. TWO FUNCTIONS: Publish() & Subscribe()

Learn about Publish() and Subscribe()

How does PubNub and jQTouch work together?

We combined jQTouch and PubNub to create a page that reacts to an Orientation Event. When this event fires, a Publish() push notification sends the Orientation Delta. Any listening device will receive this Orientation Delta and check if its own Orientation matches.

Thanks to jQTouch for the Orientation Event. This page was created with a few lines of JavaScript.

IoT
Sep 22, 2014

Tessel + PubNub Power IoT in 4 Lines of JavaScript

Power IoT in 4 lines of JavaScript with Tessel and PubNub. Tessel is a small, powerful microcontroller that runs entirely on JavaScript.
Michael Carroll
Michael Carroll
Real-Time
Oct 25, 2026

PubNub DataSync vs. real-time databases: Where your app's live state belongs

When to keep live app state in PubNub DataSync, when you still need a real-time database, and how a marathon app splits its data between them.
Dawid Urbas
Dawid Urbas
AI
Oct 7, 2026

Why MCP Alone Isn’t Enough for AI-Assisted Real-Time Development

Discover why Model Context Protocol (MCP) alone isn't enough for building production-ready real-time apps, and how combining MCP with engineering guidance (PubNub Skills) ensures robust architecture.
Ginni Kakkar
Ginni Kakkar