Access your node.js console remotely.
Console.io allows you to access the console of your running node.js instances and even execute code remotely.
In order to see another console in the dashboard, run sample2.js (8082) as well.
Logs will start showing in real time. Errors will be displayed in red.
There will be a prompt with the name of the host, where you can start running scripts. Notice that if you want to see something in the output you are going to have to either:
//this will print 4.return 2 + 2;//this will print undefined.2 + 2;//this will print 4 and then undefined.console.log2 + 2;
The script will be printed right before the result, so that other dashboards looking at the console, see the script and can make something out of the output
If you would like to see the logs in your own front end, you pass an instance of socket.io to the "server" module.
From the website perspective it's pretty easy to receive messages. You start by subscribing to the 'web' namespace. You can see how it works in the \public\index.html file.
You will find that integrating console.io to your node.js apps is ridiculously simple.
nccconnectendpoint: ""name: "marketplace";
npm install console.io-client
Add this once in every node.js process:
var ncc = require'console.io-client';nccconnectoptions callback;
endpoint: url to the dashboard.
name: unique name of this particular node.js process.
disableExec: disable the remote execution of code.