Getting started
Before we continue, you'll need to sign up for an account at PubNub. Navigate to the following URL to sign up for a free account:
http://www.pubnub.com/free-trial
After you've logged in, you'll need to create a new app as shown in the following screenshot:
Under the More Apps menu, select create new app. Enter a name and hit Enter.
After the app is created, there should be a section containing two important pieces of information:
Your Publish Key
Your Subscribe Key
The Publish and Subscribe keys are both needed in order to publish messages to PubNub and receive messages from PubNub.
Now that you have these two things, we can get started.