Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

239
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!