Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

udp-discovery

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

udp-discovery - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

index.js

@@ -28,2 +28,3 @@ /**

var GLOBAL_EVENT_NAME = 'MessageBus';
var DEFAULT_REUSE_ADDR = true;

@@ -56,3 +57,4 @@ // We use events and must inherit from events.EventEmitter

options.dgramType.toLowerCase() : DEFAULT_DGRAM_TYPE;
self.socket = dgram.createSocket(self.dgramType);
self.reuseaddr = (options && options.reuseaddr) ? options.reuseaddr : DEFAULT_REUSE_ADDR;
self.socket = dgram.createSocket({type: self.dgramType, reuseAddr: self.reuseaddr});
self.port = (options && options.port) ? options.port : DEFAULT_UDP_PORT;

@@ -59,0 +61,0 @@ self.bindAddr = (options && options.bindAddr) ? options.bindAddr :

{
"name": "udp-discovery",
"version": "1.0.0",
"version": "2.0.0",
"description": "Provides zero-config discovery service using broadcast UDP.",

@@ -21,3 +21,3 @@ "main": "index.js",

],
"author": "Edmond Meinfelder",
"author": "Edmond Meinfelder, Ryan Pannell",
"license": "MIT",

@@ -24,0 +24,0 @@ "dependencies": {

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