dart-lang / dart-lang/http

how to parse the GZIP compressed data returned by the ws subscription

Open
#1,577 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.