6 Commits

Author SHA1 Message Date
3b1ee6460f 1.0.8 2019-04-09 12:35:28 +02:00
1f86bb0eb4 fix(core): update 2019-04-09 12:35:27 +02:00
463b4db091 1.0.7 2019-04-09 12:34:16 +02:00
66f463549d fix(core): update 2019-04-09 12:34:15 +02:00
ea47e1afc0 1.0.6 2019-04-09 12:33:46 +02:00
68132b996b fix(core): update 2019-04-09 12:33:46 +02:00
4 changed files with 10 additions and 11 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartipc", "name": "@pushrocks/smartipc",
"version": "1.0.5", "version": "1.0.8",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartipc", "name": "@pushrocks/smartipc",
"version": "1.0.5", "version": "1.0.8",
"private": false, "private": false,
"description": "node inter process communication", "description": "node inter process communication",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -30,10 +30,12 @@ tap.test('should create a client', async tools => {
clientIpc.sendMessage('hi', { awesome: 'yes' }); clientIpc.sendMessage('hi', { awesome: 'yes' });
}); });
tap.test('should terminate the smartipc process', async (tools) => { tap.test('should terminate the smartipc process', async tools => {
await tools.delayFor(1000);
await clientIpc.stop(); await clientIpc.stop();
await serverIpc.stop(); await serverIpc.stop();
tools.delayFor(2000).then(() => {
process.exit(0);
});
}); });
tap.start(); tap.start();

View File

@ -53,7 +53,7 @@ export class SmartIpc {
} }
for (const handler of this.handlers) { for (const handler of this.handlers) {
ipcEventEmitter.on(handler.keyword, (dataArg) => { ipcEventEmitter.on(handler.keyword, dataArg => {
handler.handlerFunc(dataArg); handler.handlerFunc(dataArg);
}); });
} }
@ -70,9 +70,6 @@ export class SmartIpc {
case 'client': case 'client':
break; break;
} }
plugins.smartdelay.delayFor(2000).then(() => {
process.exit(0);
});
} }
/** /**