mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
19 lines
426 B
JavaScript
19 lines
426 B
JavaScript
var syrup = require('syrup')
|
|
|
|
var zmq = require('zmq')
|
|
|
|
var logger = require('../../../util/logger')
|
|
|
|
module.exports = syrup()
|
|
.define(function(options) {
|
|
var log = logger.createLogger('device:plugins:push')
|
|
|
|
// Output
|
|
var push = zmq.socket('push')
|
|
options.endpoints.push.forEach(function(endpoint) {
|
|
log.info('Sending output to %s', endpoint)
|
|
push.connect(endpoint)
|
|
})
|
|
|
|
return push
|
|
})
|