zxcv05 / hubbub

Rust library for creating discord self-bots
GNU General Public License v3.0
4 stars 2 forks source link

Websocket compression support #4

Open zxcv05 opened 1 month ago

zxcv05 commented 1 month ago

From the discord developer documentation:

"When processing transport-compressed data, you should push received data to a buffer until you receive the 4-byte Z_SYNC_FLUSH suffix (00 00 ff ff). After you receive the Z_SYNC_FLUSH suffix, you can then decompress the buffer."

I wonder if reqwest-websocket supports this or if i have to roll my own...