socket-io-admin-ui/test
Damien Arrachequesne e0d91cadb1
feat: add production mode
There are two ways to enable this production mode:

- either with the new "mode" option:

```js
instrument(io, {
  mode: "production" // defaults to "development"
});
```

- or with the NODE_ENV environment variable:

```
NODE_ENV=production node index.js
```

In production mode, the server won't send all details about the socket
instances and the rooms, thus reducing the memory footprint of the
instrumentation.

Related:

- https://github.com/socketio/socket.io-admin-ui/issues/22
- https://github.com/socketio/socket.io-admin-ui/issues/23
2022-06-22 01:18:52 +02:00
..
index.ts feat: add production mode 2022-06-22 01:18:52 +02:00