The community forums are in BETA and closed to the public.

Can I publish messages via Python and subscribe via Javascript?

Hi, I am developing a dashboard application with Pubnub and EON Charts. Since my raw data lives in openstack I have to use python ceilometer API to get the data and then I am publishing the data via python and I think I will have to subscribe via Javascript since EON library is in Javascript. My question is: Is that possible to publish via one framework and subscribe via another. Is there any example documentation regarding this?

Yes, that should not be a problem. We designed our system to not deploy a publish key to most subscriber since they use JS. Once your publish key is out there, you'll be susceptible to messages you don't want on PubNub.

Yes PubNub is engineered to support publish and subscribe from different languages. We have many customers doing this in production today! The secret is using a common message format. PubNub uses JSON.

As long as you publish in JSON and expect the return in JSON too, everything will work fine cross platform.


Comments to this discussion are now closed!