Commit Graph

11 Commits

Author SHA1 Message Date
Damien Arrachequesne 6ba21636d3
feat(server): add store based on redis@4
Reference: https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md

Related: https://github.com/socketio/socket.io-admin-ui/issues/65
2023-04-06 18:00:39 +02:00
Damien Arrachequesne ef89df5f50
chore(server): bump dependencies
Latest version of mocha has dropped support for Node.js v12.x and below.

Reference:

- https://github.com/mochajs/mocha/blob/master/CHANGELOG.md
- https://github.com/nodejs/Release
2022-10-07 10:27:05 +02:00
Damien Arrachequesne b21b649ea2
fix: handle late HTTP server binding
The following example:

```js
const io = new Server(); // without port or HTTP server

instrument(io, {
  auth: false
});

io.listen(3000);
```

will now work properly.

Related: https://github.com/socketio/socket.io-admin-ui/issues/49
2022-10-06 08:20:16 +02:00
Damien Arrachequesne 6d58a755b4
fix: properly track events with acknowledgement
"event_received" events did include the acknowledgement function, which
would break during encoding.

Related:

- https://github.com/socketio/socket.io-admin-ui/issues/48
- https://github.com/socketio/socket.io-admin-ui/issues/54
2022-10-06 08:18:25 +02:00
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
Damien Arrachequesne 481ef22b3a
feat: add page displaying all events 2022-06-18 02:29:04 +02:00
Damien Arrachequesne 577f4e9d1a
chore(server): bump dependencies 2022-06-18 02:14:40 +02:00
Corey e17e9e1dbe
fix: properly track updates to socket.data
Before this commit, attributes added to `socket.data` within a
middleware were lost.

Related: 3773fe4b1c
2022-05-03 07:27:21 +02:00
Damien Arrachequesne 74f1c20f6a
fix(server): add support for dynamic namespaces
This fix depends on the "new_namespace" event emitted by the server,
which was added in `socket.io@4.1.0`.

Related: https://github.com/socketio/socket.io-admin-ui/issues/6
2021-06-02 10:37:19 +02:00
Damien Arrachequesne 1cf991e49a
fix(server): only serialize required handshake attributes
In order not to include "auth" and other attributes like
"sessionStore", which is added by the "express-session" package.

Related: https://github.com/socketio/socket.io-admin-ui/issues/7
2021-06-02 10:34:56 +02:00
Damien Arrachequesne f453422662
initial commit 2021-04-15 12:28:15 +02:00