Skip to content

Commit

Permalink
re-added callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jfd committed Apr 24, 2011
1 parent e1b46ba commit 0f652c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Connection.prototype.writeOpen = function(ch, mode, data, callback) {
return this._writePacket(ch, OPEN << 4 | mode, data);
};

Connection.prototype.writeData = function(ch, priority, data) {
Connection.prototype.writeData = function(ch, priority, data, callback) {

if (!data) {
data = new Buffer("");
Expand All @@ -165,7 +165,7 @@ Connection.prototype.writeData = function(ch, priority, data) {
return this._writePacket(ch, DATA << 4 | priority, data, callback);
};

Connection.prototype.writeSignal = function(ch, type, data) {
Connection.prototype.writeSignal = function(ch, type, data, callback) {

if (!data) {
data = new Buffer("");
Expand Down

0 comments on commit 0f652c3

Please sign in to comment.