Binding for uv_poll and replacement for IOWatcher

npm install socketwatcher
8 downloads in the last day
107 downloads in the last week
497 downloads in the last month


SocketWatcher is a JavaScript binding for uv_poll based on code by TobyEalden (with permission) for node_mdns. It's useful as a drop-in replacement for Node's old, private module IOWatcher.

More information on uv_poll:

Installation and use

$ npm install socketwatcher

var SocketWatcher = require("SocketWatcher");
var watcher = new SocketWatcher();
watcher.callback = function() { [...] };
watcher.set(fd, read_flag, write_flag);
// watcher.stop();

Original work

The files contributed to node_mdns:


MIT licensed, see LICENSE.

npm loves you