• Ok so I put in the `setTimeout(function() { LoopbackA.setConsole();},100); and it WORKS!!! HUZZAH, but there is an issue, after sending over the response, it sends over an infinite stream of the error after logging the return. I have to reset manually to kill the stream.

    I think this is because the error msg itself counts as data and so the LoopbackB.on('data',function(msg){ ws.send(msg); }); function goes into an infinite loop.

    Webconsole below.

    >>Server:Ready!
    >>console.log("Hello");
    >>Hello
     Uncaught TypeError: Expecting a number or something iterable, got undefined
     at line 2 col 29
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 2 col 19
     Uncaught TypeError: Expecting a number or something iterable...
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 1 col 21
     Uncaught SyntaxError: Got ':' expected EOF
    
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 1 col 21
     Uncaught SyntaxError: Got ':' expected EOF
    
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 1 col 21
     Uncaught SyntaxError: Got ':' expected EOF
    
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 1 col 21
     Uncaught SyntaxError: Got ':' expected EOF
    
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 1 col 21
     Uncaught SyntaxError: Got ':' expected EOF
    
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    >>Uncaught SyntaxError: Got ':' expected EOF
     at line 1 col 21
     Uncaught SyntaxError: Got ':' expected EOF
    
     ^
     in function "command" called from line 2 col 28
     LoopbackB.write(command());
     ^
     in function called from system
    
About

Avatar for Esper @Esper started