Skip to content

Commit

Permalink
manager: added packet method to write to engine socket
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 17, 2012
1 parent 198798a commit df3b994
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,18 @@ Manager.prototype.destroy = function(socket){
}
};

/**
* Writes a packet.
*
* @param {Object} packet
* @api private
*/

Manager.prototype.packet = function(packet){
debug('writing packet %j', packet);
this.engine.write(parser.encode(packet));
};

/**
* Clean up transport subscriptions.
*
Expand Down

0 comments on commit df3b994

Please sign in to comment.