Sorry if I'm a noob. But I don't know how can the subscribe method via http will receive real time messages? I could use a timer to request each time but it won't be real time anymore.
Example: http://pubsub.pubnub.com /subscribe /sub-key /channel /callback /timetoken
I am making a blackberry 10 cascades chat app. And there's no pubnub lib for it. I've tried the libpubnub in C but there's no dependency libraries like libevent and libjson.
I hope somebody can help. Thank you very much.
This page explains how you can chain your subscribe requests together using the response's timetoken in each subsequent request: http://www.pubnub.com/http-rest-push-api/