diff --git a/lib/connection.js b/lib/connection.js index b9f01a4cf4..e3802cf1d3 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -391,7 +391,7 @@ class Connection extends EventEmitter { secureSocket.on('data', data => { this.packetParser.execute(data); }); - this.write = buffer => secureSocket.write(buffer); + this.stream = secureSocket; } protocolError(message, code) {