mqtt stuff added
This commit is contained in:
13
node_modules/mqtt/test/util.js
generated
vendored
Normal file
13
node_modules/mqtt/test/util.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
|
||||
var through = require('through2')
|
||||
|
||||
module.exports.testStream = function () {
|
||||
return through(function (buf, enc, cb) {
|
||||
var that = this
|
||||
setImmediate(function () {
|
||||
that.push(buf)
|
||||
cb()
|
||||
})
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user