mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-07-09 03:03:59 -04:00
Removed socket delays to reduce latency
This commit is contained in:
parent
4dcd961d5e
commit
6442e8d6b0
2 changed files with 5 additions and 0 deletions
lib
|
@ -23,6 +23,8 @@ Server.prototype.listen = function(port, host) {
|
|||
var nextId = 0;
|
||||
self.socketServer = net.createServer();
|
||||
self.socketServer.on('connection', function(socket) {
|
||||
socket.setNoDelay();
|
||||
|
||||
var client = new Client(true);
|
||||
client._end = client.end;
|
||||
client.end = function end(endReason) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue