Skip to content

HTTPS clone URL

Subversion checkout URL

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

Merge pull request #6 from imyller/master

Update nan for io.js 2.x.x compatibility
latest commit b2828f4655
@btrask authored

README.md

SocketWatcher

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.start();
// 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:

License

MIT licensed, see LICENSE.

Something went wrong with that request. Please try again.