Client also emits 'packet' events for every packet

This commit is contained in:
Andrew Kelley 2013-01-04 21:57:17 -05:00
parent 68b29db639
commit 5e0ae2713a

View File

@ -34,6 +34,7 @@ Client.prototype.setSocket = function(socket) {
packet = parsed.results;
incomingBuffer = incomingBuffer.slice(parsed.size);
self.emit(packet.id, packet);
self.emit('packet', packet);
}
});