kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
764 stars 273 forks source link

Unzipping incoming traffic #135

Open siberianguy opened 6 years ago

siberianguy commented 6 years ago

I've been successfully using WebSocket4Net for working with many crypto exchanges but today started implementing Huobi and it disconnects instantly. Their documentation says:

All return data of websocket APIs needs to be unzipped.

Recommend: pako

I guess it could be the source of the problem. As I understand, WebSocket4Net automatically converts messages to strings. Is there a way to preprocess (unzip in this case) an input bytes beforehand?