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

280
Vistas
Socket implementation is showing problem in react js

On implementing the socket.io-client in my project it is showing an error and the connection status is false.

This is the code of socket.

 socket = io('url', {
    transports: ['websocket']
 })
 console.log(socket)

and I am using the socket version

 "socket.io-client": "^4.5.1",

But the console is showing

 It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)
about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

Changed Version from

"socket.io-client": "^4.5.1",

To

"socket.io-client": "^1.7.4",

And Changed

import {io} from "socket.io-client

To

import io from "socket.io-client
about 4 years ago · Santiago Gelvez 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