Adds keepalive setting to socket

This commit is contained in:
Bruce Sheplan
2020-06-28 14:21:49 -05:00
committed by parnic
parent 0a0c8c7cd0
commit 2e5203fb85

View File

@ -133,6 +133,7 @@ class UnitConnection extends EventEmitter {
this.password = password;
this.client = new net.Socket();
this.client.setKeepAlive(true, 10 * 1000);
var _this = this;
var buffer = Buffer.alloc(1024);
var bufferIdx = 0;