I was attempting to switch from tokio_tungstenite to ratchet_rs primarily because this library supports per-message deflate. However, the library does not appear to work for some WebSocket servers as it fails on the handshake.
Here is a minimum reproducible example: https://gist.github.com/eqiy/7de3c543d92dacefafd5551a36211b02
I am not entirely sure of the reason, but I can't reproduce the issue on any other library even across different programming languages, so something ratchet_rs is doing is unique.