Git Product home page Git Product logo

Comments (7)

darrachequesne avatar darrachequesne commented on May 22, 2024

Hi! Which version of @socket.io/admin-ui are you using?

It seems the mode is set to production, which is why only the overview information is displayed.

from socket.io-admin-ui.

afrancis-caregility avatar afrancis-caregility commented on May 22, 2024

Hi @darrachequesne, Can we show some more information when the mode is set to production. The Admin UI is not very useful for me when the mode is production. I would prefer to see the sockets, rooms & clients tabs. Don't need the events or the other options to modify (leave, join, disconnect) but would like to see the sockets and rooms and additional metadata set on the sockets. Just seeing the dashboard and server tabs doesn't serve much purpose for me. You can also perhaps add some new attributes to show these tabs in production mode. Like showSockets = true, showRooms=true etc.
image

from socket.io-admin-ui.

darrachequesne avatar darrachequesne commented on May 22, 2024

@afrancis-caregility doesn't the development mode suit your use case? Tracking all sockets is quite CPU/memory hungry, hence the production/development modes.

from socket.io-admin-ui.

afrancis-caregility avatar afrancis-caregility commented on May 22, 2024

Yes, it does but I am afraid to put development mode in Production. I will do some load testing and see how the platform behaves in development mode. This admin UI has been invaluable in helping me figure out what is going on with socket.io server & clients and so I would also prefer to have this capability in Prod to debug issues. I am more interested in seeing the data the socket holds and which rooms they are part of. So, that's why I wanted to see those two tabs. Is it possible to get data at a point in time by clicking a "load client data" rather than real time status updates if that makes it easier in production mode. This way we can load whatever sockets and rooms are available when user connects to Admin UI and then we can do a manual refresh to fetch the latest data again. We definitely don't want any monitoring tool taking up lot of memory/CPU in Prod.

from socket.io-admin-ui.

MixxxxxxxxH avatar MixxxxxxxxH commented on May 22, 2024

https://socket.io/docs/v4/admin-ui/
This page: "Default value: development"

@afrancis-caregility doesn't the development mode suit your use case? Tracking all sockets is quite CPU/memory hungry, hence the production/development modes.

from socket.io-admin-ui.

IlyaDiallo avatar IlyaDiallo commented on May 22, 2024

https://socket.io/docs/v4/admin-ui/ This page: "Default value: development"

@afrancis-caregility doesn't the development mode suit your use case? Tracking all sockets is quite CPU/memory hungry, hence the production/development modes.

Yes but the NODE_ENV overrides this setting and in Heroku (for instance) it defaults to "production"

from socket.io-admin-ui.

darrachequesne avatar darrachequesne commented on May 22, 2024

@IlyaDiallo in that case, you need to explicitely specify mode: development, which should override the NODE_ENV variable.

See also:

const options: InstrumentOptions = Object.assign(
{
namespaceName: "/admin",
auth: undefined,
readonly: false,
serverId: undefined,
store: new InMemoryStore(),
mode: process.env.NODE_ENV || "development",
},
opts
);

Can we show some more information when the mode is set to production. The Admin UI is not very useful for me when the mode is production. I would prefer to see the sockets, rooms & clients tabs.

Tracking all sockets/rooms requires a lot of memory, this is why it's only enabled in development mode.

I'm closing this, as I don't think there is much we can do. Please reopen if needed.

from socket.io-admin-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.