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

284
Views
La implementación de socket muestra un problema en reaccionar js

Al implementar socket.io-client en mi proyecto, muestra un error y el estado de la conexión es falso.

Este es el código de socket.

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

y estoy usando la versión de socket

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

Pero la consola está mostrando

 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 answers
Answer question

0

Versión modificada de

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

A

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

y cambiado

 import {io} from "socket.io-client

A

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