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

221
Vistas
socket.io error when forcing websocket communication

We are having some trouble forcing websocket communication in our application. Basically when we allow polling everything works fine but we saw from time to time errors on websocket communications. After some research we changed the configuration to 'transports': ['websocket'], upgrade: false

When we restart the sockets are not working anymore and we are getting errors like this one

WebSocket connection to 'wss://our-server/socket.io/?partnerId=22222&EIO=3&transport=websocket' failed: Compressed bit must be 0 if no negotiated deflate-frame extension

We also created an issue that you can find here:

https://github.com/socketio/socket.io/issues/2925

The server is based on Node.js and the client is an ionic application with AngularJS.

Anyone experience the same issue? Any ideas how to tackle this?

Thanks!!!

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Turns out that I was doing wrong the initialization of the websocket client

I was doing:

var socketIo = require('socket.io')(server, {
  path: '/myserver/socket.io',
  transports: ['websocket']
});
var client = socketIo.listen(server, {
  path: '/myserver/socket.io',
  transports: ['websocket']
});

and this works like a charm:

var client = require('socket.io')(server, {
  path: '/myserver/socket.io',
  transports: ['websocket']
});
over 4 years ago · Santiago Trujillo Denunciar
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