Build

PubNub + jQTouch

1 min readJoe Hanson on May 10, 2010
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.

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 ...

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.

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