diff --git a/examples/proxy/proxy.js b/examples/proxy/proxy.js index a09773e..df9d645 100644 --- a/examples/proxy/proxy.js +++ b/examples/proxy/proxy.js @@ -125,6 +125,8 @@ srv.on('login', function(client) { } if(!endedClient) client.write(packet.id, packet); + if (packet.id === 0x46) // Set compression + client.compressionThreshold = packet.threshold; } }); var buffertools = require('buffertools');