magx-monitor
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Magx monitoring console

How to install package:

npm install --save magx-monitor

How to use

  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.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i magx-monitor

Weekly Downloads

3

Version

0.0.7

License

MIT

Unpacked Size

42.4 kB

Total Files

11

Last publish

Collaborators

  • udamir