|
|
|
@ -6,7 +6,7 @@ const getConnection = (connName, host, port) => {
|
|
|
|
|
console.log(connName + ' Connected: '); |
|
|
|
|
console.log(' local = %s:%s', this.localAddress, this.localPort); |
|
|
|
|
console.log(' remote = %s:%s', this.remoteAddress, this.remotePort); |
|
|
|
|
this.setTimeout(1000); |
|
|
|
|
this.setTimeout(5000); |
|
|
|
|
this.setEncoding('utf8'); |
|
|
|
|
this.on('data', function (data) { |
|
|
|
|
console.log(connName + " From Server: " + data.toString()); |
|
|
|
|