Socket
Socket
Sign inDemoInstall

node-ipc

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ipc - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

.brackets.json

17

node-ipc.js
var os = require('os'),
dns = require('dns'),
util = require('util'),

@@ -21,6 +22,10 @@ colors = require('colors'),

var IPType=os.networkInterfaces()[
Object.keys(os.networkInterfaces())[0]
][0].family
var defaults={
appspace : 'app.',
socketRoot : '/tmp/',
networkHost : '127.0.0.1',
networkHost : (IPType=='IPv6')? '::1' : '127.0.0.1',
networkPort : 8000,

@@ -33,3 +38,4 @@ id : os.hostname(),

maxRetries : false,
stopRetrying : false
stopRetrying : false,
IPType : IPType
}

@@ -165,3 +171,4 @@

callback=function(){};
ipc.server=new Server(

@@ -173,6 +180,6 @@ host,

);
if(UDPType)
ipc.server[UDPType]=true;
ipc.server.on(

@@ -179,0 +186,0 @@ 'start',

{
"name": "node-ipc",
"version": "1.2.1",
"version": "1.2.2",
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.",

@@ -5,0 +5,0 @@ "main": "node-ipc.js",

@@ -65,3 +65,3 @@ node-ipc

id : os.hostname(),
networkHost : '127.0.0.1', //we use this instead of localhost as default because windows without network connection turns dns off and is unable to find localhost like other... smarter... OSes
networkHost : 'localhost', //should resolve to 127.0.0.1 or ::1 see the table below related to this
networkPort : 8000,

@@ -279,3 +279,3 @@ encoding : 'utf8',

|----------|----------|------------|
| host | optional | If not specified this defaults to 127.0.0.1. For TCP, TLS & UDP servers this is most likely going to be 127.0.0.1 or 0.0.0.0 unless you have something like [node-http-server](https://github.com/RIAEvangelist/node-http-server) installed to run subdomains for you. |
| host | optional | If not specified this defaults to the first address in os.networkInterfaces(). For TCP, TLS & UDP servers this is most likely going to be 127.0.0.1 or ::1 |
| port | optional | The port on which the TCP, UDP, or TLS Socket server will be bound, this defaults to 8000 if not specified |

@@ -282,0 +282,0 @@ | UDPType | optional | If set this will create the server as a UDP socket. 'udp4' or 'udp6' are valid values. This defaults to not being set.

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