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

334
Vistas
How would I verify an users identity SOCKET.IO

I am making an live - chat platform, but I cannot find a way to verify a users identity.

I do not have any code because there arent any errors.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

You need a way to uniquely identify the socket to each client, so you'd have to do something like this:

Login request to API > API retrieves user from database > Sends Response to Client > Create websocket connection in frontend, pass in unique id from database response through url params to wss endpoint > you can also do db transactions with this unique identifier to add more fine grained control for caching/session tracking.

It's hard to really give specific code examples if you're not sharing your code.

about 4 years ago · Juan Pablo Isaza Denunciar

0

I ended up solving this after reading this article. They used the express-session package and showed how to get the req.session variable from a socket.io event.

about 4 years ago · Juan Pablo Isaza Denunciar
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