joyent/node — pull request #2269 by thejh (2011-12-04 19:56:22+00:00)
Title: Add optional features: One domain per incoming data event, catchall Socket listener

Hello,
this patch adds two features:

- `Socket.addGenericListener` allows you to listen to `data`, `write`, `connect` and `close` events of all sockets
- if `Socket.eventDomains` is set, you get one domain per incoming data event

Yes, if you use these features, you'll probably get some performance impact, but it also allows you to do cool stuff like a network traffic viewer that can show you which events belong together: http://www.youtube.com/watch?v=4iSDwAb8XEA