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

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

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 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!