refactor: pass HTTP to integration controller (#652)

* refactor: pass HTTP to integration controller

* refactor: deprecate onair control

* refactor: remove playback router
This commit is contained in:
Carlos Valente
2023-12-19 21:44:43 +01:00
committed by GitHub
parent fe9f12a14b
commit 062dc0c914
14 changed files with 280 additions and 477 deletions
+2 -5
View File
@@ -62,17 +62,14 @@ export class OscServer implements IAdapter {
}
try {
const reply = dispatchFromAdapter(
// we dont reply on OSC
dispatchFromAdapter(
path,
{
payload: transformedPayload,
},
'osc',
);
if (reply) {
const { topic, payload } = reply;
this.osc.emit(topic, payload);
}
} catch (error) {
logger.error(LogOrigin.Rx, `OSC IN: ${error}`);
}
+2 -2
View File
@@ -132,8 +132,8 @@ export class SocketServer implements IAdapter {
'ws',
);
if (reply) {
const { topic, payload } = reply;
ws.send(topic, payload);
const { payload } = reply;
ws.send(type, payload);
}
} catch (error) {
logger.error(LogOrigin.Rx, `WS IN: ${error}`);