node-ipc/test/unix/unixClient.js

28 lines
397 B
JavaScript
Raw Normal View History

2021-07-04 17:12:00 +10:00
import ipc from '../../node-ipc.js';
import process from 'process';
2016-01-10 20:03:05 +11:00
2021-07-04 17:12:00 +10:00
const dieAfter=30e3;
function killServerProcess(){
process.exit(0);
}
2015-12-05 13:40:38 +11:00
2016-01-10 18:23:40 +11:00
setTimeout(
2021-07-04 17:12:00 +10:00
killServerProcess,
2016-01-10 18:23:40 +11:00
dieAfter
);
2015-12-05 13:40:38 +11:00
2016-01-10 18:23:40 +11:00
ipc.config.id = 'unixClient';
ipc.config.retry= 600;
ipc.config.silent=true;
2015-12-05 13:40:38 +11:00
ipc.connectTo(
'testWorld',
'/tmp/app.testWorld'
);
ipc.connectTo(
'testWorld2',
'/tmp/app.testWorld'
2015-12-05 13:40:38 +11:00
);