npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

bare-zmq

1.2.5

@kasperisager

npmHomeRepoSnykSocket
Downloads:0
$ npm install bare-zmq
DailyWeeklyMonthlyYearly

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