update node-osc to v9

This commit is contained in:
arc-alex
2023-11-03 14:23:25 +01:00
committed by Carlos Valente
parent 0555d0f400
commit 44f025b359
3 changed files with 29 additions and 25 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
"express-validator": "^6.14.2",
"lowdb": "^5.0.5",
"multer": "^1.4.5-lts.1",
"node-osc": "^8.0.10",
"node-osc": "^9.0.2",
"node-xlsx": "^0.21.0",
"ontime-utils": "workspace:*",
"passport": "^0.6.0",
@@ -25,7 +25,7 @@
"devDependencies": {
"@types/express": "^4.17.17",
"@types/node": "^16.11.7",
"@types/node-osc": "^6.0.0",
"@types/node-osc": "^6.0.2",
"@types/websocket": "^1.0.5",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
+2 -1
View File
@@ -5,6 +5,7 @@ import { Server } from 'node-osc';
import { IAdapter } from './IAdapter.js';
import { dispatchFromAdapter } from '../controllers/integrationController.js';
import { logger } from '../classes/Logger.js';
import { error } from 'console';
export class OscServer implements IAdapter {
private readonly osc: Server;
@@ -12,7 +13,7 @@ export class OscServer implements IAdapter {
constructor(config: OSCSettings) {
this.osc = new Server(config.portIn, '0.0.0.0');
this.osc.on('error', console.error);
this.osc.on('error', (error) => logger.error(LogOrigin.Rx, `OSC IN: ${error}`));
this.osc.on('message', (msg) => {
// message should look like /ontime/{path}/{params?} {args} where