remove unused
cleanup styles
simplify post code
commentz
This commit is contained in:
cv
2021-10-27 22:54:50 +02:00
parent 0a5fa12c21
commit 1afdd67760
6 changed files with 20 additions and 13 deletions
+10 -1
View File
@@ -145,7 +145,13 @@ const server = http.createServer(app);
export const startServer = async (overrideConfig = null) => {
// Setup default port
const port = overrideConfig?.port || serverPort;
// const port = overrideConfig?.port || serverPort;
/* Note: Port is hardcoded
* need to find a good solution for sharing
* the dynamic info with the frontend
*/
const port = 4001;
// Start server
const returnMessage = `HTTP Server is listening on port ${port}`;
@@ -165,9 +171,12 @@ export const shutdown = async () => {
// shutdown express server
server.close();
// shutdown OSC Server
shutdownOSCServer();
// shutdown OSC Client
oscClient.close();
// shutdown timer
global.timer.shutdown();