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

122
Vistas
Socket client not connection

I'm trying to use the socket client, but all the attempts were unsuccessful, I did the same in the documentation and it didn't work.

        import { io } from 'socket.io-client';

    export function testUsingWithNodeHTTPServer () {
      console.log('=============SOCKET===============')
      const socket = io('http://localhost:8080', {
        path:" /chat/socket",
        extraHeaders: {
          session_id: "452c6c87-30ad-4ed7-bfc5-467dd5633d1d"
        }
      })
      socket.on("connect", () => {
        console.log('Client connected.');
      })

    }

Version:

"socket.io-client": "4.3.2",
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