This is an simple, yet thorough, example of initializing PubNub, subscribing to a channel and publishing to that channel.
Once you init PUBNUB, you can subscribe to a channel.
The connect callback indicates that subscription to the channel was successful, so we call our pub function which perf...