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

Compression support

Open FlashPlayer13 opened this issue 6 years ago • 2 comments

Hi! Thank you for your great work.

Is there any chance to use this client with compression? I need to work with server that uses: "Sec-WebSocket-Extensions", "permessage-deflate; client_max_window_bits". And when compressed (big) message arrives - websocket drops an exception like: "The Buffer type '386' is invalid. Valid Buffer types are : 'Close', 'BinaryFragment', 'BinaryMessage', 'UTF8Fragment', 'UTF8Message'"

FlashPlayer13 avatar Sep 02 '19 13:09 FlashPlayer13

Hello, do you have any link to official documentation/standard about this feature? Also please check if native C# client already supports it. https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.clientwebsocket?view=netcore-2.2

Marfusios avatar Sep 06 '19 08:09 Marfusios

https://datatracker.ietf.org/doc/html/rfc7692 normally another library support this to 'permessage-deflate' extension default c# client is not support

libu1129 avatar Sep 01 '23 15:09 libu1129