diff --git a/package.json b/package.json index 280c69f..a569548 100644 --- a/package.json +++ b/package.json @@ -28,4 +28,4 @@ "@types/node-ipc": "^9.1.1", "node-ipc": "^9.1.1" } -} +} \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts index e901807..e1f8bdb 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -53,7 +53,7 @@ export class SmartIpc { } for (const handler of this.handlers) { - ipcEventEmitter.on(handler.keyword, (dataArg) => { + ipcEventEmitter.on(handler.keyword, dataArg => { handler.handlerFunc(dataArg); }); } @@ -65,10 +65,10 @@ export class SmartIpc { public async stop() { switch (this.options.type) { case 'server': - this.ipc.server.stop(); - break; + this.ipc.server.stop(); + break; case 'client': - break; + break; } plugins.smartdelay.delayFor(2000).then(() => { process.exit(0);