Use socket.io to update the console ouput when needed.