Static
prefixedRest
...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]Optional
context: anyCalls each of the listeners registered for a given event.
Rest
...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]Return an array listing the events for which the emitter has registered listeners.
Sends a command to CasparCG
if there was an error when sending the command (such as being disconnected)
a Promise that resolves when CasparCG replies after a command has been sent. If this throws, there's something seriously wrong :)
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: ((...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]) => void)Rest
...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]Optional
context: anyAdd a one-time listener for a given event.
Rest
...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof ConnectionEventsRemove the listeners of a given event.
Optional
fn: ((...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]) => void)Rest
...args: ArgumentMap<ConnectionEvents>[Extract<T, keyof ConnectionEvents>]Optional
context: anyOptional
once: booleanGenerated using TypeDoc
Stops internal timers so that the class is ready for garbage disposal