Skip to content
A JavaScript binding for uv_poll and replacement for IOWatcher.
C++ Python
Latest commit 1c181db Mar 2, 2016 @btrask Merge pull request #12 from jasondana/check-unref
Check poll handle is active before attempting to stop and unreference it
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md Update readme. Jun 16, 2013
binding.gyp
package.json
socket_watcher.cpp
socket_watcher.hpp
wscript

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.