Removes all handlers. Called on controller dispose.
Emits an event to all subscribers synchronously and returns the (possibly mutated) event — so the
caller can read Cancel and any handler-applied transformations.
The event name.
The event payload.
The same event object after all handlers have run.
Unsubscribes a handler from an event.
The event name.
The handler to remove.
Subscribes to an event.
The event name.
The handler to invoke.
An unsubscribe function.
Subscribes to an event for a single emission, then auto-unsubscribes.
The event name.
The handler to invoke once.
An unsubscribe function (in case you want to cancel before it fires).
A typed, synchronous event bus for LiveKit room events. Handlers fire in registration order; a thrown handler error is isolated (logged to
console.error) so one bad subscriber cannot break the room or suppress later handlers.