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

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.1.9 to 1.1.10

testHarness/tests/tcp-socket-test/client.js

2

node-ipc.js

@@ -69,3 +69,3 @@ var os = require('os'),

ipc.of[id].stopRetrying=true;
ipc.of[id].config.stopRetrying=true;

@@ -72,0 +72,0 @@ ipc.of[id].off('*');

{
"name": "node-ipc",
"version": "1.1.9",
"version": "1.1.10",
"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",

#node-ipc test harness
***TestHarness was intended to be run on linux.***
*the test.js file is intended to start and run all of the files in the test folder*

@@ -3,0 +4,0 @@

@@ -26,3 +26,3 @@ var ipc = require('../../../node-ipc');

'fail',
'test-harness-fail-test'
'test-harness-this-test-should-fail'
);

@@ -29,0 +29,0 @@ setTimeout(

@@ -1,3 +0,2 @@

var ipc = require('../../../node-ipc'),
expectedClient=ipc.config.id+'-client';
var ipc = require('../../../node-ipc');

@@ -8,2 +7,4 @@ ipc.config.id = __dirname.split('/');

var expectedClient=ipc.config.id+'-client';
ipc.connectTo(

@@ -19,3 +20,3 @@ 'testHarness',

id : ipc.config.id,
duration: 1200
duration: 1400
}

@@ -48,3 +49,3 @@ );

var test='unix-server-detected-correct-id-disconnection';
if(id==ipc.config.id+'-client'){
if(id==expectedClient){
ipc.of.testHarness.emit(

@@ -57,3 +58,3 @@ 'pass',

'fail',
test+' : detected wrong id of '+id
test+' : detected wrong id of '+id+' expecting :: '+expectedClient
);

@@ -65,3 +66,8 @@ }

process.exit(0);
setTimeout(
function(){
process.exit(0);
},
400
)
}

@@ -78,7 +84,14 @@ )

var test='unix-client-registered with proper id'
if(socket.id==expectedClient){
ipc.of.testHarness.emit(
'pass',
'unix-client-registered with proper id'
test
);
}else{
ipc.of.testHarness.emit(
'fail',
test+' : detected wrong id of '+socket.id+' expecting :: '+expectedClient
);
}

@@ -85,0 +98,0 @@ }

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