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

176
Views
Socket.io's path adds slash at the end of path

I am encountering the following error on the frontend when trying to connect to a socket provided by the client.

WebSocket connection to 'wss://domain:1255/getTxInfo/?txId=123&secret=123=4&transport=websocket' failed: 

My configuration is the following:

  var socket = io('https://domain:1255', {
    path: '/getTxInfo',
    transports: ['websocket'],
    autoconnect: true,
    query: {
      txId: this.tx.txid,
      secret: this.tx.secret
    }
  });

I presume my problem is caused by the fact that Socket.io is adding a "/" between the path and the query parameters.

.../getTxInfo / ?txId=1....

Is it possible to get rid of the slash through socket.io configuration?

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!