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

173
Vistas
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
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