Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented 'drain' and 'readable' events.
- Loading branch information
1 parent
de0e139
commit c38ee4b
Showing
3 changed files
with
190 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
module.exports = require('bindings')('zmqstream.node') | ||
/*jshint proto:true*/ | ||
var zmqstream = require('bindings')('zmqstream.node') | ||
, EventEmitter = require('events').EventEmitter | ||
|
||
// We're using `__proto__` deliberately here to inherit a JS class to a C++ class. | ||
// While we'd prefer to use `util.inherits`, that wipes out the already-completed prototype. | ||
zmqstream.Socket.super_ = EventEmitter | ||
zmqstream.Socket.prototype.__proto__ = new EventEmitter() | ||
|
||
module.exports = zmqstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.