1.2.5 • Published 4 months ago
bare-zmq v1.2.5
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