mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 20:06:00 +00:00
events work in electron IPC
This commit is contained in:
@@ -136,7 +136,11 @@ module.exports = {
|
||||
raw: true,
|
||||
},
|
||||
test(req, res) {
|
||||
const subprocess = fork(process.argv[1], ['--start-process', 'connectProcess', ...process.argv.slice(3)]);
|
||||
const subprocess = fork(global['API_PACKAGE'] || process.argv[1], [
|
||||
'--start-process',
|
||||
'connectProcess',
|
||||
...process.argv.slice(3),
|
||||
]);
|
||||
subprocess.on('message', resp => {
|
||||
if (handleProcessCommunication(resp, subprocess)) return;
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user