Closed ghost closed 5 years ago
This is the more important problem (see also my PR): https://github.com/RuntimeTools/appmetrics-dash/blob/master/public/index.html#L32
@s-h-a-d-o-w @mannypamintuan Sorry for not having responded sooner to this, will pick this up tomorrow in the office and get back on top of the outstanding issues and PR's
Issue: Passing in a
HTTP
server object viaoptions.server
and a non-default url viaoptions.url
is causing the metrics dashboard to be empty.using hapi v16
Context: there are multiple connections for this node.js app so using
server.select('web').listener
returns theHTTP
server object for theweb
connection. https://github.com/hapijs/hapi/blob/v16/API.md#serverlistenerCould it be because:
https://github.com/RuntimeTools/appmetrics-dash/blob/master/lib/appmetrics-dash.js#L171
And instead if
options.url
exists, setting thepath
to${options.url}/socket.io
?