npm install --save magx-monitor
const server = http.createServer()
const magx = new Server(server, params)
monitor(magx, {
serializer: "schema", // Support schema serializer
secret: "monitor" // authentication secret
})
const port = process.env.PORT || 3001
server.listen(port, () => {
console.info(`Server started on http://localhost:${port}`)
})
Access the Monitoring console on http://localhost:3001/magx/monitor in your browser.
MIT