A websocket implementation for zig
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #74 from black-sliver/fix/client-compression-control-frames

Fix: Client: only send message frames compressed

authored by

Karl Seguin and committed by
GitHub
(Aug 3, 2025, 7:19 AM +0800) 7240830d ab9afcf4

+1 -1
+1 -1
src/client/client.zig
··· 370 370 var payload = data; 371 371 var compressed = false; 372 372 if (self._compression) |c| { 373 - if (data.len >= c.write_treshold) { 373 + if (data.len >= c.write_treshold and (op_code == .binary or op_code == .text)) { 374 374 compressed = true; 375 375 376 376 var writer = &c.writer;