Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda