Skip to content

Instantly share code, notes, and snippets.

@g33klord
g33klord / parse-cloud-publish-to-pubnub.js
Created Oct 22, 2015 — forked from stephenlb/parse-cloud-publish-to-pubnub.js
Combining Parse API with PubNub Realtime Messaging - By combining the Parse API with PubNub Data Streams you will have a better starting point rather than building a custom backend from scratch.
View parse-cloud-publish-to-pubnub.js
var pubnub = {
'publish_key' : 'demo',
'subscribe_key' : 'demo'
};
var bob_channel = "channel-bob";
var sally_channel = "channel-sally";
var message = {
"from" : "Sally",