@buckyos/socketwatcher

0.3.1 • Public • Published

#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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.1
    1
  • 0.3.0
    0

Package Sidebar

Install

npm i @buckyos/socketwatcher

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

8.76 kB

Total Files

8

Last publish

Collaborators

  • buckyos