1 | noflo = require 'noflo'
|
2 |
|
3 | exports.getComponent = ->
|
4 | c = new noflo.Component
|
5 | c.description = 'Forwards packets and metadata in the same way it receives them'
|
6 | c.icon = 'forward'
|
7 | c.inPorts.add 'in',
|
8 | datatype: 'all'
|
9 | description: 'Packet to forward'
|
10 | c.outPorts.add 'out',
|
11 | datatype: 'all'
|
12 |
|
13 | noflo.helpers.WirePattern c,
|
14 | in: ['in']
|
15 | out: 'out'
|
16 | forwardGroups: true
|
17 | , (data, groups, out) ->
|
18 | out.send data
|
19 |
|
20 | c
|