Skip to content

Commit

Permalink
Added handler for dispatch subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jun 27, 2011
1 parent 6f12de9 commit 2a4e4e1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,21 @@ Transport.prototype.onForcedDisconnect = function () {
if (this.open) {
this.packet({ type: 'disconnect' });
}
this.end(true);
this.end('booted');
}
};

/**
* Dispatches a packet.
*
* @api private
*/

Transport.prototype.onDispatch = function (packet, volatile) {
if (volatile) {
this.writeVolatile(packet);
} else {
this.write(packet);
}
};

Expand Down

0 comments on commit 2a4e4e1

Please sign in to comment.