mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
graceful shutdown
- confirmation dialog - shutdown node service
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import { Server } from 'node-osc';
|
||||
|
||||
let oscServer = null;
|
||||
|
||||
export const shutdownOSCServer = () => {
|
||||
if (oscServer != null) oscServer.close();
|
||||
};
|
||||
|
||||
export const initiateOSC = (config) => {
|
||||
const oscServer = new Server(config.port, '0.0.0.0', () => {
|
||||
oscServer = new Server(config.port, '0.0.0.0', () => {
|
||||
console.log(`OSC Server is listening on port ${config.port}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user