how to parse the GZIP compressed data returned by the ws subscription
Open
package:web_socket_channel
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 419
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 8
Description
how to parse the GZIP compressed data returned by the ws subscription(example: wss://api.huobi.pro/ws)
as package:http,i can use like this:
var bytes = response.bodyBytes;
var inflated = zlib.decode(bytes);
var data = utf8.decode(inflated);
json.decode(data);
Contributor guide
Assessment
This issue has not been assessed yet.