Hello to all,
The services that PubNub offers are quite large, that is, if we just take a quick view, we can see that the number of services, the different APIs, the complexity of that APIs, etc., are not simple at all. I want to recommend the lecture of this article from Nick Brandury: Favicon Hell: Small Feature, Big Code. Basically we can know where we start... but it's no possible to know where we finish.
If I am not wrong, the particular service that you link is quite similar than the Pusher.com service offers (we have already a Pusher control in AB). Well. We start with problems, since, the Javascript SDK that we must use, apparently, is not available in the CND link that the service offer. There is no problem... we can get the code from Github, fortunatelly, so we can try to follow the service's start guide.
And, certainly, we can "simply" copy the code of the start guide and adapt it to an AB app, just like in the below way:
https://www.decsoftutils.com/_support/uploads/PubNub.zip
You must open two instances of the app to see it working, that is... a sole instance of the app works like expected, but, probably you want how the apps can interchange messages in real time, don't you? For that, run the app in AB, type an user name (like "John") and then run the app in a browser like Firefox, and, type another user name (like "Peter"), then you can see how both instances of the app can interchange messages in real time.
This means we end the work? Not at all! We just start with the work... we just follow the start guide... but we must continue working... studying the service API, probably implement lot of things in the server (we want to save the history of messages in a database?), etcetera, etcetera, etcetera. I want to finish by a quote of the refered Nick Bradbury's article:
I know that response sounds glib to those who hear it, but it’s really me being honest. If I haven’t tackled a feature in code yet, then there’s no way I can reliably estimate how long it will take to complete it.
I completely agree with Bradbury.