bare-zmq
v1.2.4
Published
ZeroMQ bindings for JavaScript
Downloads
69
Readme
bare-zmq
Low-level ZeroMQ bindings for JavaScript.
npm i bare-zmq
In memory of Pieter Hintjens :rose:
Usage
const { Context, PairSocket } = require('bare-zmq')
const ctx = new Context()
const a = new PairSocket(ctx)
const b = new PairSocket(ctx)
const endpoint = 'inproc://foo'
a.bind(endpoint)
b.connect(endpoint)
a.createReadStream().on('data', console.log)
b.createWriteStream().write('hello world')
License
Apache-2.0