Initial implementation of python client with socket.io IPC

This commit is contained in:
Logan Cusano
2024-04-03 02:24:21 -04:00
parent be5943e9d4
commit c78ed89707
11 changed files with 1022 additions and 308 deletions

View File

@@ -1,4 +1,4 @@
import { checkIfDiscordVCConnected, joinDiscordVC, leaveDiscordVC, getDiscordUsername, checkIfClientIsOpen, getDiscordID } from '../discordAudioBot/dabWrappers.mjs';
import { checkIfDiscordVCConnected, joinDiscordVC, leaveDiscordVC, getDiscordUsername, checkIfClientIsOpen, getDiscordID } from '../discordAudioBot/pdabWrappers.mjs';
import { getCurrentSystem } from '../op25Handler/op25Handler.mjs';
import { checkForUpdates } from './selfUpdater.mjs';

View File

@@ -19,7 +19,7 @@ export const launchProcess = (processName, args, waitForClose=false) => {
// Store reference to the spawned process
runningProcesses[processName] = childProcess;
code = new Promise(res => {
let code = new Promise(res => {
childProcess.on('exit', (code, signal) => {
// Remove reference to the process when it exits
delete runningProcesses[processName];