Friday, 28 April 2017

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



via José María González Vázquez

No comments:

Post a Comment