Command.continue Event

The continue event fires when a command continues to be activated; this may happen 0 or more times, depending on the duration of the activation.

Event type

The event uses the CommandEvent object, with the phase set to "continue".

Example

> ident = simulator.findCommand("sim/transponder/transponder_ident")
Command{ name: "sim/transponder/transponder_ident" }
> ident.addEventListener("begin", (event) => { console.log(`Received command event with phase {event.phase}`)})
undefined
> ident.begin()
undefined
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
Received command event with phase continue
> ident.end()
undefined

References