Maybe?
This commit is contained in:
parent
ad0df84598
commit
50fcbeb9f0
8
index.ts
8
index.ts
|
@ -91,10 +91,11 @@ function handle_message(message: Partial<WebSocketMessage>) {
|
|||
status: transportInfo.status,
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.log()
|
||||
console.log(err)
|
||||
})
|
||||
}, 1000)
|
||||
|
||||
setTimeout(() => {
|
||||
newHyperdeck.sendCommand(new Commands.DeviceInfoCommand()).then((info) => {
|
||||
for (let index = 0; index < info.slots; index++) {
|
||||
setInterval(() => {
|
||||
|
@ -105,10 +106,13 @@ function handle_message(message: Partial<WebSocketMessage>) {
|
|||
slot_id: slot.slotId,
|
||||
remaining: slot.recordingTime
|
||||
})
|
||||
}).catch(() => {})
|
||||
}).catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
}, 1000)
|
||||
})
|
||||
|
||||
newHyperdeck.on('notify.slot', function (slot) {
|
||||
|
|
Loading…
Reference in New Issue