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

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