UNPKG

318 BJavaScriptView Raw
1
2class Client {
3
4 constructor(container) {
5
6 var http = require("./client/http")
7 var mqtt = require("./client/mqtt")
8
9 var httpClient = http.create(container)
10 var mqttClient = mqtt.create(container)
11
12 Object.assign(this, httpClient, mqttClient)
13 }
14}
15
16module.exports = Client