A javascript, engine.io-powered dashboard for Godot2. A port of riemann-dash from ruby/sinatra to node.js.
npm install --save godot2-dashUse this if you want to just create a dashboard server with minimal ceremony.
Takes an options hash with the following properties:
- mount: Where to mount the dashboard (defaults to
/) - config: File location for the config file (defaults to ./config.json )
Usage looks something like this:
var godot = require('godot2'), dash = require('godot2-dash'); var dashboard = dash.createServer() godot.createServer({ type: 'tcp', reactors: [ new dash.reactor(dashboard) ] }).listen(1337); dashboard.listen(1338);Returns a middleware. Options are the same as those of dash.createServer. You can use this if you want to add the godot dashboard to an existing middleware stack without creating a new server.
Creates a new reactor. Pass in an http server to attach engine.io to. You can use this in conjunction with dash.middleware to add the dashboard to an existing middleware stack.
MIT

