• Try:

    var server = require("net").createServer(function(c) {
      console.log('server connected');
      c.write('Your welcome message!\r\n');
      LoopbackA.setConsole();
      LoopbackB.pipe(c);
      c.pipe(LoopbackB);
    }).listen(23);
    

    You'll have to be careful not to reset() - which the Web IDE does automatically at upload normally - since that will remove the server which is serving your code!

    You could do a little with:

    var reallyReset = reset;
    function reset() {
      clearWatch();
      clearInterval();
    }
    

    But that wouldn't delete any uploaded functions.

About

Avatar for Gordon @Gordon started