-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
open nng socket types, pass them to js as node buffers
- Loading branch information
Showing
10 changed files
with
287 additions
and
133 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
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
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
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
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,3 +1,41 @@ | ||
# nodenng | ||
|
||
bindings to nng (nanomsg next generation) | ||
|
||
# install | ||
```bash | ||
npm i nodenng | ||
``` | ||
|
||
# use | ||
```js | ||
const { | ||
bus_open, | ||
pair0_open, | ||
pair1_open, | ||
pub_open, | ||
pull_open, | ||
push_open, | ||
rep_open, | ||
req_open, | ||
respondent_open, | ||
sub_open, | ||
surveyor_open, | ||
} = require('nodenng') | ||
|
||
|
||
const pub = pub_open() | ||
const sub = sub_open() | ||
|
||
// more nng api will be made available to javascript in the coming days | ||
// please help add stuff or send PRs if you'd like faster access from node.js | ||
``` | ||
|
||
# test | ||
see [`test` directory](test) | ||
|
||
## license | ||
|
||
MIT. © 2019 Bent Cardan | ||
|
||
<sub>*currently tested on linux and osx but very shortly full windows support*</sub> |
Oops, something went wrong.