diff --git a/lib/connection.js b/lib/connection.js index 49121aedd..8744bbe32 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -19,7 +19,7 @@ var BINARY_MODE = 1 var Connection = function (config) { EventEmitter.call(this) config = config || {} - this.stream = config.stream || new net.Stream() + this.stream = config.stream || new net.Socket() this._keepAlive = config.keepAlive this.lastBuffer = false this.lastOffset = 0