From 646c7676c67e87b408455e8f9998224cc09e1cc7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 2 Jan 2013 05:25:53 -0500 Subject: [PATCH] emit packets in their own channel as well --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 60d885e..94e7880 100644 --- a/index.js +++ b/index.js @@ -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); } });