node-ipc/test/unix/unixClient.js
2021-07-04 00:12:00 -07:00

27 lines
397 B
JavaScript

import ipc from '../../node-ipc.js';
import process from 'process';
const dieAfter=30e3;
function killServerProcess(){
process.exit(0);
}
setTimeout(
killServerProcess,
dieAfter
);
ipc.config.id = 'unixClient';
ipc.config.retry= 600;
ipc.config.silent=true;
ipc.connectTo(
'testWorld',
'/tmp/app.testWorld'
);
ipc.connectTo(
'testWorld2',
'/tmp/app.testWorld'
);