Map of event names to their handler arguments.
Attaches the addon to a Room instance. This method is called when the addon is
added using room.attach(addon).
The Room instance to attach to.
Detaches the addon from a Room instance. This method is called when the addon is
removed using room.detach(addon).
The Room instance to detach from.
Unsubscribes from an event emitted by the addon.
Subscribes to an event emitted by the addon.
Event name.
Event handler.
Optionaloptions: ListenerOptions
Listener options, such as an AbortSignal that removes the handler.
A function that removes the handler.
Subscribes to an event emitted by the addon for a single invocation.
Event name.
Event handler.
Optionaloptions: ListenerOptions
Listener options, such as an AbortSignal that removes the handler.
A function that removes the handler.
Base class for Peerix addons.
Pass an event map to type the addon's events: