websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

Per-message Compression not working with uWebsocket backend

Open emaadgh opened this issue 6 years ago • 1 comments

Hi, I'm using Websocket-sharp in my Unity game as client that is connecting to a uWebsocket backend server. We want to enable Per-message Compression for this connection but the problem is that when I enable compression in client with following line before connect:

ws.Compression = CompressionMethod.Deflate;

the server refuses the request from the client for connection.
We also reproduced this issue with ws library in node js as backend with its provided example configuration, but the problem persists. When we set serverMaxWindowBits in ws library to default negotiated value, the client can connect to the server properly.

Now my question is, Is there any way that we can control this serverMaxWindowBits from WebSocket-Sharp client?

Thanks

emaadgh avatar Nov 21 '19 12:11 emaadgh

Any update on this issue? I'm being in this exact same situation... :/

RoiArthurB avatar Jan 09 '25 08:01 RoiArthurB