Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

241
Vistas
How do I generate dynamic socket namespace based on each user registration in NodeJS?

I want to generate a dynamic socket namespace whenever someone registers (that namespace should be the id of user or whatever). But, the idea is that whenever any user registers, they get an API Key from my server and then they can use that key on their frontend to connect with my socket server. Now, of course the clients will be all different so I will need to generate dynamic namespace for each user.

I have thought about looping over user's collection and then creating a namespace for each user id, but the problem is that what if someone makes a new account? My socket server will already be running and it won't generate a new namespace again.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda