mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
update types/node and osc-min (#1475)
This commit is contained in:
committed by
GitHub
parent
fb1bbd6d5c
commit
f509655d31
@@ -33,11 +33,7 @@ function preparePayload(output: OSCOutput, state: RuntimeState): OscPacketInput
|
||||
function emit(targetIP: string, targetPort: number, packet: OscPacketInput) {
|
||||
logger.info(LogOrigin.Tx, `Sending OSC: ${targetIP}:${targetPort}`);
|
||||
|
||||
/**
|
||||
* TODO: remove this type casting when change is merged
|
||||
* https://github.com/DefinitelyTyped/DefinitelyTyped/pull/71659
|
||||
*/
|
||||
const buffer = oscPacketToBuffer(packet) as unknown as Uint8Array;
|
||||
const buffer = oscPacketToBuffer(packet);
|
||||
udpClient.send(buffer, 0, buffer.byteLength, targetPort, targetIP, (error) => {
|
||||
if (error) {
|
||||
logger.warning(LogOrigin.Tx, `Failed sending OSC: ${error}`);
|
||||
|
||||
Reference in New Issue
Block a user