Socket-events is a project mainly written in JavaScript, it's free.
Improved event support in net.Socket and net.Server streams in node.js
NB! This library is a WIP project, not intended for production use.
A wrapper around node.js net.Server
and net.Socket
adding support for triggering custom events both ways, and optionally transmitting a JSON object
Take a look at the example directory for example server/clients