(message: any)
| 95 | } |
| 96 | |
| 97 | function notify(message: any) { |
| 98 | env.verbose && console.log(`[${id}] Notify: `, message); |
| 99 | if (!process.send) { |
| 100 | return; |
| 101 | } |
| 102 | |
| 103 | // @ts-ignore |
| 104 | process.send(message, (error) => { |
| 105 | if (error) { |
| 106 | console.error(`[${id}] Process Send Error: `, error); |
| 107 | } |
| 108 | |
| 109 | return null; |
| 110 | }); |
| 111 | } |