Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A JavaScript binding for uv_poll and replacement for IOWatcher.
C++ Python
Branch: master

[npm] Bump version to 0.3.0 which runs on Node 4

It compiles with Node 0.10 actually, but I've tested it only with Node 4. If it indeed works with older versions of Node we can adjust the "engines" field in package.json to reflect that.
latest commit 8c9c552a8c
@ide ide authored


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").SocketWatcher;
var watcher = new SocketWatcher();
watcher.callback = function() { [...] };
watcher.set(fd, read_flag, write_flag);
// watcher.stop();

Note: since version 0.2.0, you must use require("socketwatcher").SocketWatcher, instead of using the module object directly. Sorry for the inconvenience.

Original work

The files contributed to node_mdns:


MIT licensed, see LICENSE.

Something went wrong with that request. Please try again.