Skip to content

disconnect()

Dan Stocker edited this page May 30, 2019 · 1 revision

Usage: disconnect(outPort[, inPort])

Module: flowcode

Disconnects an input port from an output port, or, disconnect all input ports from an output port.

import {connect, disconnect} from "flowcode";
connect(node2.o.d_out, console.log);
//...
disconnect(node1.o.d_out, node2.i.d_in);
node1.i.d_in("Hello World!");
// does not log

Clone this wiki locally