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 -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