Commit Graph

55 Commits

Author SHA1 Message Date
Pan Qiancheng 9f56943238 支持了任意路径 2025-05-09 11:05:38 +08:00
Pan Qiancheng 63524a12db build 2025-05-08 15:40:33 +08:00
Pan Qiancheng 40f6b8992a changes for oak project 2025-05-08 15:38:27 +08:00
Damien Arrachequesne 158864989d
ci: upgrade to actions/checkout@3 and actions/setup-node@3
Reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-04-06 18:03:18 +02:00
Damien Arrachequesne 9a00cea5b4
refactor(server): simplify Redis store saveSession() 2023-04-06 18:01:52 +02:00
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 fcf32cc3cc
docs: add example with NestJS 2022-11-25 01:00:25 +01: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 232d87af04
chore(release): 0.5.1
Diff: https://github.com/socketio/socket.io-admin-ui/compare/0.5.0...0.5.1
2022-10-07 09:56:43 +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 a8ce5262d5
chore(release): 0.5.0
Diff: https://github.com/socketio/socket.io-admin-ui/compare/0.4.0...0.5.0
2022-09-19 11:02:22 +02:00
Damien Arrachequesne 81af1d40ae
feat(server): switch to the bcryptjs module
The bcryptjs module is written in plain JavaScript, so it does not need
to be compiled with node-gyp (which is problematic on some platforms).

Related: https://github.com/socketio/socket.io-admin-ui/issues/50
2022-09-19 10:38:12 +02:00
Damien Arrachequesne f57e0bfa32
chore(ui): update dependencies 2022-09-19 10:21:00 +02:00
Hüsnü Lübnan 7e36532242
feat(ui): add tr locale (#52) 2022-09-19 10:21:00 +02:00
Suji Kim 2226f7bcd9
feat(ui): update ko locale (#51) 2022-09-19 09:58:34 +02:00
Damien Arrachequesne 89ed3c734d
chore(release): 0.4.0
Diff: https://github.com/socketio/socket.io-admin-ui/compare/0.3.0...0.4.0
2022-06-23 15:13:37 +02:00
Damien Arrachequesne 5a8a75edc0
feat(ui): separate the namespace from the server URL
This should help prevent people from connecting to the main namespace,
when they forget to include the namespace at the end of the server URL.

Related:

- https://github.com/socketio/socket.io-admin-ui/issues/26
- https://github.com/socketio/socket.io-admin-ui/issues/42
2022-06-23 15:11:48 +02:00
Damien Arrachequesne 8542601b55
feat: display sent and received events 2022-06-23 13:43:45 +02:00
Damien Arrachequesne 7df8471b33
refactor(ui): minor usability improvements 2022-06-23 13:43:13 +02:00
Damien Arrachequesne fdec2ce17b
feat(ui): add support for relative links
In case the root path is not "/".

Related: https://github.com/socketio/socket.io-admin-ui/issues/41
2022-06-22 01:22:07 +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 77ee068318
fix(ui): properly set initial nav drawer state 2022-06-18 02:14:50 +02:00
Damien Arrachequesne 8258a9aa54
ci: add Node.js 18 2022-06-18 02:14:47 +02:00
Damien Arrachequesne 577f4e9d1a
chore(server): bump dependencies 2022-06-18 02:14:40 +02:00
Damien Arrachequesne 63d7535a46
chore(release): 0.3.0
Diff: https://github.com/socketio/socket.io-admin-ui/compare/0.2.0...0.3.0
2022-05-03 07:33:06 +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 4359536a4b
feat: add support for the msgpack parser
Related: https://github.com/socketio/socket.io-admin-ui/issues/28
2022-05-01 08:09:10 +02:00
imithu 925c617af1
feat(ui): improve Bengali (বাংলা) translation (#27) 2022-05-01 07:09:49 +02:00
frozeeen 62e146709f
feat: add navigation drawer for mobile devices (#31)
Related: https://github.com/socketio/socket.io-admin-ui/issues/29
2022-05-01 07:07:39 +02:00
Corey 3773fe4b1c
feat: add socket data in the UI (#37)
Related: https://github.com/socketio/socket.io-admin-ui/issues/32
2022-04-29 01:53:41 +02:00
Damien Arrachequesne 39864b1bf5
docs: add several examples of instrumented servers
- single server
- multiple servers with Node.js cluster module
- multiple servers with Redis
2022-04-21 23:49:35 +02:00
oldthreefeng 9c8e7728a2
chore: add Dockerfile (#25)
Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
2021-09-01 09:03:19 +02:00
Damien Arrachequesne e8eaf8b9d8
chore(release): 0.2.0
Diff: https://github.com/socketio/socket.io-admin-ui/compare/0.1.2...0.2.0
2021-06-11 14:18:21 +02:00
imithu b9c09f4c7d
feat(ui): add Bengali (বাংলা) translation (#18) 2021-06-11 14:08:35 +02:00
Pedro Filipe e8d05bd118
feat(ui): add pt-BR locale (#13) 2021-06-10 08:04:40 +02:00
Dharmaraj 2e05f706c6
feat: display the real IP address of the user (#16) 2021-06-10 07:56:41 +02:00
Damien Arrachequesne cec313e379
docs: fix typo 2021-06-03 11:25:29 +02:00
Damien Arrachequesne 5f235e31a9
docs: remove comment about credentials flag
The `credentials: true` is always needed since the client is created
with `withCredentials: true`.
2021-06-03 11:22:14 +02:00
Damien Arrachequesne 5d92994bca
docs: add note about BCrypt hashes
Related: https://github.com/socketio/socket.io-admin-ui/issues/9
2021-06-03 11:21:01 +02:00
Damien Arrachequesne 9428b6bac7
chore(release): 0.1.2
Diff: https://github.com/socketio/socket.io-admin-ui/compare/0.1.1...0.1.2
2021-06-02 11:51:48 +02:00
Damien Arrachequesne 7ad384dd34
fix(ui): allow to specify the connection path
Related: https://github.com/socketio/socket.io-admin-ui/issues/8
2021-06-02 11:25:42 +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 99fa3ed1aa
docs: add credentials option for cookie-based sticky sessions
This is needed for cookie-based sticky sessions, for example with AWS
load balancers and the AWSALBCORS cookie.

Please note that the cookies must be created with `SameSite=None` and
`Secure`.

Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
2021-05-10 00:18:41 +02:00
Damien Arrachequesne eab7bfab64
chore(release): 0.1.1 2021-05-10 00:03:17 +02:00
Damien Arrachequesne 3ec64a62d3
fix(ui): allow to connect to a websocket-only server
Related:

- https://github.com/socketio/socket.io-admin-ui/pull/4
- https://github.com/socketio/engine.io-client/issues/575
2021-05-09 23:16:00 +02:00
Damien Arrachequesne 51fac0aeb8
fix(ui): set withCredentials to true
This is needed for cookie-based sticky-sessions.

Related: https://github.com/socketio/socket.io-admin-ui/issues/5
2021-05-07 11:17:33 +02:00
Damien Arrachequesne ad0ec0de08
chore(release): 0.1.0 2021-05-04 15:01:31 +02:00