AMT manager improvements.

This commit is contained in:
Ylian Saint-Hilaire
2020-10-07 16:41:14 -07:00
parent 8eb80efe39
commit d1b3acb397
3 changed files with 89 additions and 5 deletions

View File

@@ -200,6 +200,7 @@ var CreateWsmanComm = function (host, port, user, pass, tls, tlsoptions, mode) {
obj.socket.on('data', obj.xxOnSocketData);
obj.socket.on('close', obj.xxOnSocketClosed);
obj.socket.on('timeout', obj.xxOnSocketTimeout);
obj.socket.on('error', obj.xxOnSocketClosed);
obj.socket.connect(obj.port, obj.host, obj.xxOnSocketConnected);
} else {
// Connect with TLS