Comparing version 3.7.12 to 3.7.13
@@ -8,21 +8,24 @@ /* --------------------------------------------------------------------------- | ||
var PUBNUB = require("../pubnub.js") | ||
var pubnub = require("../pubnub.js") | ||
var pubnub = PUBNUB({ | ||
publish_key : "demo", | ||
subscribe_key : "demo" | ||
//cipher_key : "demo" | ||
var p = pubnub.init({ | ||
"subscribe_key" : "new-pam", | ||
"publish_key" : "new-pam", | ||
"secret_key" : "new-pam", | ||
"params" : {}, | ||
}); | ||
pubnub.publish({ | ||
post: false, | ||
channel : 'PubNubTest_RX', | ||
message : { 'test' : 'f?ds' }, | ||
callback : function(details) { | ||
var success = details[0] | ||
, response = details[1]; | ||
p.publish({ | ||
"message" : "foo", | ||
"channel" : "bar", | ||
}); | ||
if (success) console.log( "Success!", response ); | ||
if (!success) console.log( "Fail!", response ); | ||
} | ||
p.publish({ | ||
"message" : "foo", | ||
"channel" : "bar", | ||
}); | ||
p.grant({ | ||
"callback" : function (m) { console.log(m); }, | ||
"error" : function (e) { console.error(e); }, | ||
}); |
{ | ||
"name": "pubnub", | ||
"preferGlobal": false, | ||
"version": "3.7.12", | ||
"version": "3.7.13", | ||
"author": "PubNub <stephen@pubnub.com>", | ||
@@ -6,0 +6,0 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
333334
6615