Trying to enable nmp server compression

This commit is contained in:
Romain Beaumont 2015-10-12 14:17:45 +02:00
parent c55865ef33
commit 4e3a4a0efc

View File

@ -200,8 +200,8 @@ function createServer(options) {
if(onlineMode == false || isException) {
client.uuid = "0-0-0-0-0";
}
//client.write('compress', { threshold: 256 }); // Default threshold is 256
//client.compressionThreshold = 256;
client.write('compress', { threshold: 256 }); // Default threshold is 256
client.compressionThreshold = 256;
client.write('success', {uuid: client.uuid, username: client.username});
client.state = states.PLAY;
loggedIn = true;