Skip to content

Commit

Permalink
Fix missing first parameter for BinaryClient
Browse files Browse the repository at this point in the history
Adding the missing first parameter used by BinaryClient for new instance
creation.
  • Loading branch information
IfnotFr committed Feb 15, 2013
1 parent 714d054 commit 282f356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var BinaryStream = require('./stream').BinaryStream;
// end node // end node


function BinaryClient(socket, options) { function BinaryClient(socket, options) {
if (!(this instanceof BinaryClient)) return new BinaryClient(options); if (!(this instanceof BinaryClient)) return new BinaryClient(socket, options);


EventEmitter.call(this); EventEmitter.call(this);


Expand Down

0 comments on commit 282f356

Please sign in to comment.