prepare for osc input

This commit is contained in:
2023-12-04 16:28:07 +01:00
parent 04a4f28f68
commit cc963ac54f
9 changed files with 99 additions and 19 deletions

View File

@ -1,5 +1,5 @@
import { type Editor } from "./main";
import { socket } from "./IO/OSC";
import { outputSocket, inputSocket } from "./IO/OSC";
const handleResize = (canvas: HTMLCanvasElement) => {
if (!canvas) return;
@ -28,7 +28,8 @@ export const saveBeforeExit = (app: Editor): null => {
app.currentFile().committed = app.view.state.doc.toString();
app.settings.saveApplicationToLocalStorage(app.universes, app.settings);
// Close the websocket
socket.close();
inputSocket.close();
outputSocket.close();
return null;
};