Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Designation is different for outports vs inports

  • Loading branch information...
commit 7f68b389d74c85063047685259d62e73cd30deaf 1 parent ff09619
@kenhkan authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/components/Graph.coffee
View
11 src/components/Graph.coffee
@@ -53,14 +53,15 @@ class Graph extends noflo.Component
return true
replicatePort: (port) ->
- # Designate the destination port as a link to avoid sending multiple IPs
- port.isLink = true
-
return new noflo.ArrayPort() if port instanceof noflo.ArrayPort
return new noflo.Port() unless port instanceof noflo.ArrayPort
replicateInPort: (port, portName) ->
newPort = @replicatePort port
+
+ # Designate the originating port (inside the graph) as a link to avoid sending multiple IPs
+ port.isLink = true
+
newPort.on "attach", (socket) ->
newSocket = noflo.internalSocket.createSocket()
port.attach newSocket
@@ -79,6 +80,10 @@ class Graph extends noflo.Component
replicateOutPort: (port, portName) ->
newPort = @replicatePort port
+
+ # Designate the originating port (inside the graph) as a link to avoid sending multiple IPs
+ newPort.isLink = true
+
newPort.on "attach", (socket) ->
newSocket = noflo.internalSocket.createSocket()
port.attach newSocket

0 comments on commit 7f68b38

Please sign in to comment.
Something went wrong with that request. Please try again.