Yes, more debugging
This commit is contained in:
parent
7b964e9171
commit
47f7efc4be
7
index.ts
7
index.ts
|
@ -105,9 +105,14 @@ function handle_message(message: Partial<WebSocketMessage>) {
|
||||||
event: "log",
|
event: "log",
|
||||||
message: JSON.stringify(info)
|
message: JSON.stringify(info)
|
||||||
})
|
})
|
||||||
for (let index = 0; index < info.slots ?? 1; index++) {
|
let slots = info.slots === null ? 1 : info.slots;
|
||||||
|
for (let index = 0; index < slots; index++) {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
|
newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => {
|
||||||
|
notifyClients({
|
||||||
|
event: "log",
|
||||||
|
message: JSON.stringify(slot)
|
||||||
|
})
|
||||||
notifyClients({
|
notifyClients({
|
||||||
event: "record_time_remaining",
|
event: "record_time_remaining",
|
||||||
hyperdeck_id: message.id,
|
hyperdeck_id: message.id,
|
||||||
|
|
Loading…
Reference in New Issue