salvo-rs/salvo

Add compression support to websockets

Closed this issue · 2 comments

Hello,

It would be very useful to add compression support to websocket to optimize bandwidth,
here's the header that must be interpreted to activate compression

Sec-WebSocket-Extensions: permessage-deflate

Thanks in advance.

salvo does not implement websocket directly, it depends on tokio-tungstenite, so this requires tokio-tungstenite to provide support.

snapview/tokio-tungstenite#251

@chrislearn Thank you very much for your responsiveness, I'll look into it.