You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@bigboat/mqtt-client

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigboat/mqtt-client - npm Package Compare versions

Comparing version

to
1.1.0

2

package.json
{
"name": "@bigboat/mqtt-client",
"version": "1.0.0",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,4 +29,4 @@ const mqtt = require("mqtt");

},
addSubscriptions: subs => {
for (let topic in subs) client.subscribe(topic);
addSubscriptions: (subs, opts = {}) => {
for (let topic in subs) client.subscribe(topic, opts);
client.on("message", (topic, data) => {

@@ -33,0 +33,0 @@ const msg = JSON.parse(data.toString());