mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
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:
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user