How to use the noflo.internalSocket function in noflo

To help you get started, we’ve selected a few noflo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github noflo / noflo-core / spec / mocha / ReadEnv.js View on Github external
beforeEach(() => {
    out = noflo.internalSocket.createSocket();
    err = noflo.internalSocket.createSocket();
    c.outPorts.out.attach(out);
    c.outPorts.error.attach(err);
  });
  afterEach(() => {
github noflo / noflo-core / spec / mocha / Callback.js View on Github external
beforeEach(() => {
    err = noflo.internalSocket.createSocket();
    c.outPorts.error.attach(err);
  });
  afterEach(() => {
github noflo / noflo-core / spec / mocha / ReadGlobal.js View on Github external
beforeEach(() => {
      nameIn = noflo.internalSocket.createSocket();
      valueOut = noflo.internalSocket.createSocket();

      c.inPorts.name.attach(nameIn);
      c.outPorts.value.attach(valueOut);
    });
github noflo / noflo-core / spec / mocha / ReadEnv.js View on Github external
beforeEach(() => {
    out = noflo.internalSocket.createSocket();
    err = noflo.internalSocket.createSocket();
    c.outPorts.out.attach(out);
    c.outPorts.error.attach(err);
  });
  afterEach(() => {
github noflo / noflo-core / spec / mocha / RunInterval.js View on Github external
loader.load('core/RunInterval', (err, instance) => {
      if (err) {
        done(err);
        return;
      }
      c = instance;
      interval = noflo.internalSocket.createSocket();
      c.inPorts.interval.attach(interval);
      start = noflo.internalSocket.createSocket();
      c.inPorts.start.attach(start);
      stop = noflo.internalSocket.createSocket();
      c.inPorts.stop.attach(stop);
      done();
    });
  });
github noflo / noflo-react / spec / Render.js View on Github external
c.once('ready', function () {
        module = noflo.internalSocket.createSocket();
        container = noflo.internalSocket.createSocket();
        props = noflo.internalSocket.createSocket();
        event = noflo.internalSocket.createSocket();
        error = noflo.internalSocket.createSocket();
        c.inPorts.module.attach(module);
        c.inPorts.container.attach(container);
        c.inPorts.props.attach(props);
        c.outPorts.event.attach(event);
        c.outPorts.error.attach(error);
        c.start(done);
      });
    });
github noflo / noflo-core / spec / mocha / RunTimeout.js View on Github external
loader.load('core/RunTimeout', (err, instance) => {
      if (err) {
        done(err);
        return;
      }
      c = instance;
      start = noflo.internalSocket.createSocket();
      c.inPorts.start.attach(start);
      time = noflo.internalSocket.createSocket();
      c.inPorts.time.attach(time);
      done();
    });
  });
github noflo / noflo-core / spec / mocha / Callback.js View on Github external
loader.load('core/Callback', (e, instance) => {
      if (e) {
        done(e);
        return;
      }
      c = instance;
      ins = noflo.internalSocket.createSocket();
      cb = noflo.internalSocket.createSocket();
      c.inPorts.in.attach(ins);
      c.inPorts.callback.attach(cb);
      done();
    });
  });
github noflo / noflo-core / spec / mocha / Drop.js View on Github external
loader.load('core/Drop', (err, instance) => {
      if (err) {
        done(err);
        return;
      }
      c = instance;
      ins = noflo.internalSocket.createSocket();
      c.inPorts.in.attach(ins);
      done();
    });
  });
github noflo / noflo-react / spec / Render.js View on Github external
c.once('ready', function () {
        module = noflo.internalSocket.createSocket();
        container = noflo.internalSocket.createSocket();
        props = noflo.internalSocket.createSocket();
        event = noflo.internalSocket.createSocket();
        error = noflo.internalSocket.createSocket();
        c.inPorts.module.attach(module);
        c.inPorts.container.attach(container);
        c.inPorts.props.attach(props);
        c.outPorts.event.attach(event);
        c.outPorts.error.attach(error);
        c.start(done);
      });
    });

noflo

Flow-Based Programming environment for JavaScript

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis