socketio / socket.io-admin-ui

Admin UI for Socket.IO

Home Page:https://admin.socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use it with redis Adapter?

jayd36 opened this issue · comments

If we have multiple servers running on different ports and those attached with Redis Adapter, how can we show the combined view of all the servers at the same page in admin UI?

You should be able to see all servers in the UI. Isn't that the case?

I can see only 1 server, however, I have created 8 different servers in fork mode using pm2.
The client connection count is correct, however the server count showing only 1.

If you have several Socket.IO servers on the same machine, you'll need to give them a distinct ID:

instrument(io, {
  serverId: `${require("os").hostname()}#${process.pid}`
});

Documentation: