Console & Logging In Node.js From A HTTP interface

I have a difficult question that needs some answering, i have seen some projects where the application runs a socket in a browser that has a console like format that the user can run for their node.js module...

If the actually calling a function or script is impossible from the web side, i think it would be nifty to just see the console logs in the window.

If any advice could be shared, that would be amazing!

Thanks :)

Yes, there are several projects that do this. Weinre is very commonly used. You can look at its source code to see how it does it.

If I were to build it from scratch, I would utilize Socket.IO. Send the command, return the result.