New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zmq-xpub-xsub

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zmq-xpub-xsub - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

package.json
{
"name": "zmq-xpub-xsub",
"version": "0.3.3",
"version": "0.3.4",
"description": "Central hub for ZeroMQ",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -53,5 +53,11 @@ # zmq-xpub-xsub

const options = {
baseAddress: 'tcp://127.0.0.1',
xSubPort: 8000,
xPubPort: 8001
}
// Subscriber
const subscriber = zmq.socket('sub');
subscriber.connect('xpub-address');
subscriber.connect(`${options.baseAddress}:${options.xPubPort}`);

@@ -64,3 +70,3 @@ subscriber.on('message', (key, message) => {

const publisher = zmq.socket('pub');
publisher.connect('xsub-address');
publisher.connect(`${options.baseAddress}:${options.xSubPort}`);

@@ -67,0 +73,0 @@ publisher.send(['key', 'message'])

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc