Browse files

Comment on "old mode" switch (node v0.10+)

  • Loading branch information...
1 parent fad1e2c commit e31cf98d5e7f6e1f3bf79f38e95fac9b1ae82521 @ZJONSSON ZJONSSON committed Mar 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Connection.js
View
2 lib/Connection.js
@@ -56,7 +56,9 @@ Connection.prototype.connect = function(cb) {
? Net.createConnection(this.config.socketPath)
: Net.createConnection(this.config.port, this.config.host);
+ // Node v0.10+ Switch socket into "old mode" (Streams2)
this._socket.on("data",function() {});
+
this._socket.pipe(this._protocol);
this._protocol.pipe(this._socket);

0 comments on commit e31cf98

Please sign in to comment.