websocket-base-status

1.0.2 • Public • Published

websocket-base-status

Enables you to monitor your websocket-base server through HTTP.

How to use

let base = require("websocket-base");

base.run({
  http: require("websocket-base-status")(base)
});

// now you can access the status page at /

or with express

app.get("/status", require("websocket-base-status")(base));

base.run({
  http: app
})

Keep in mind that it's probably a good idea to implement some security middleware, you most likely don't want anyone to be able to access this page.

Readme

Keywords

none

Package Sidebar

Install

npm i websocket-base-status

Weekly Downloads

6

Version

1.0.2

License

Apache-2.0

Unpacked Size

12.4 kB

Total Files

9

Last publish

Collaborators

  • manix