• If you stick the Web server creation into an onInit() { ... } function, you should be fine.

    var WS = require ("WebServer"), ws;
    function onInit() {
      ws  = new WS (...

    This way, of course, your Web server will not star on upload of the code... You start it by entering onInit() in the console. When done with development, save() the code, and any reset and repower will do fine too.

    Take a look at 2 cents details in conversation about saving code.


Avatar for allObjects @allObjects started