23 lines
401 B
JavaScript
23 lines
401 B
JavaScript
'use strict';
|
|
|
|
const ipc=require('../../../node-ipc');
|
|
const process=require('process');
|
|
const dieAfter=30000;
|
|
|
|
//die after 60 seconds
|
|
setTimeout(
|
|
function killServerProcess(){
|
|
process.exit(0);
|
|
},
|
|
dieAfter
|
|
);
|
|
|
|
ipc.config.id = 'tcpClient';
|
|
ipc.config.retry= 600;
|
|
ipc.config.silent=true;
|
|
ipc.config.networkPort=8500;
|
|
|
|
|
|
ipc.connectToNet('tcpClient');
|
|
|
|
ipc.connectToNet('tcpClient2');
|