arlac77 / svelte-websocket-store

svelte store with a websocket backend
BSD 2-Clause "Simplified" License
286 stars 21 forks source link

Support for Gzip #225

Open jet10000 opened 3 years ago

jet10000 commented 3 years ago

yes, gzip, please add support for gzip websocket messages

arlac77 commented 3 years ago

Are there any examples using gzip with WebSockets ?

jet10000 commented 3 years ago

Some servers send gzip message to client, so need check the message type and convert the gzip messages to string and then parser to json.

jet10000 commented 3 years ago

for example: https://api.huobi.pro/market/trade?symbol=btcusdt

arlac77 commented 3 years ago

Do You refer to this type of extension Compression Extensions for WebSocket ?

jet10000 commented 3 years ago

How to refer to this type of extension? options?