Skip to content

Commit 987295d

Browse files
committed
Add a browser.js file that just exposes MqttClient and MqttConnection.
1 parent 9d4f09b commit 987295d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/browser.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
var MqttClient = require('./client')
3+
, MqttConnection = require('./connection');
4+
5+
module.exports.MqttClient = MqttClient;
6+
module.exports.MqttConnection = MqttConnection;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"engines": {
2828
"node": ">=0.8.6"
2929
},
30+
"browser": "./lib/browser.js",
3031
"dependencies": {
3132
"readable-stream": "~1.0.2"
3233
},

0 commit comments

Comments
 (0)