feat: add change endpoint to ws (#618)

* feat: add change endpoint to ws
This commit is contained in:
Carlos Valente
2023-11-26 19:02:16 +01:00
committed by GitHub
parent 9e285ee8f3
commit f2504072ce
4 changed files with 44 additions and 24 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import { LogOrigin, OSCSettings } from 'ontime-types';
import 'dotenv/config';
import express from 'express';
import expressStaticGzip from 'express-static-gzip';
import http from 'http';
import http, { type Server } from 'http';
import cors from 'cors';
// import utils
@@ -107,8 +107,8 @@ enum OntimeStartOrder {
}
let step = OntimeStartOrder.InitAssets;
let expressServer = null;
let oscServer = null;
let expressServer: Server | null = null;
let oscServer: OscServer | null = null;
const checkStart = (currentState: OntimeStartOrder) => {
if (step !== currentState) {