Socket
Socket
Sign inDemoInstall

pubnub

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pubnub - npm Package Compare versions

Comparing version 3.7.12 to 3.7.13

33

node.js/examples/hello.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc