emit packets in their own channel as well

This commit is contained in:
Andrew Kelley 2013-01-02 05:25:53 -05:00
parent 4237787082
commit 646c7676c6

View File

@ -169,6 +169,7 @@ Client.prototype.connect = function(port, host) {
if (! parsed) break;
incomingBuffer = incomingBuffer.slice(parsed.size);
self.emit('packet', parsed.results);
self.emit('packet-' + parsed.results.id, parsed.results);
}
});