Skip to content

Commit

Permalink
fix: send end with tcp response
Browse files Browse the repository at this point in the history
  • Loading branch information
plasticrake committed Jan 29, 2019
1 parent 41f79b5 commit da074b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device-networking.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class DeviceNetworking extends EventEmitter {
logTcp('[%s] TCP responding, delay:%s,', this.model, this.responseDelay, socket.address());
logTcp(responseForLog);
this.emit('response', { time: Date.now(), protocol: 'tcp', message: responseForLog, localAddress: socket.localAddress, localPort: socket.localPort, remoteAddress: socket.remoteAddress, remortPort: socket.remotePort });
socket.write(response);
socket.end(response);
}, this.responseDelay);
}
}
Expand Down

0 comments on commit da074b5

Please sign in to comment.