UNPKG

456 Btext/coffeescriptView Raw
1noflo = require 'noflo'
2
3exports.getComponent = ->
4 c = new noflo.Component
5 c.description = 'This component receives data on multiple input ports and
6 sends the same data out to the connected output port'
7 c.icon = 'compress'
8
9 c.inPorts.add 'in',
10 datatype: 'all'
11 description: 'Packet to be forwarded'
12 c.outPorts.add 'out',
13 datatype: 'all'
14
15 c.process (input, output) ->
16 data = input.get 'in'
17 output.sendDone
18 out: data