Marfusios / websocket-client

🔧 .NET/C# websocket client library
MIT License
691 stars 127 forks source link

Compression support #17

Open FlashPlayer13 opened 5 years ago

FlashPlayer13 commented 5 years ago

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'"

Marfusios commented 5 years ago

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

libu1129 commented 1 year ago

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