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.
Emits one or more events from the addon.
Event name or list of event names.
Arguments to pass to the event handlers.
Unsubscribes from one or more events emitted by the addon.
Event name or list of event names.
Optionalhandler: (...args: any[]) => void
Optional event handler to remove. If not provided, all handlers for the event(s) will be removed.
Subscribes to one or more events emitted by the addon.
Event name or list of event names.
Event handler.
Subscribes to one or more events emitted by the addon for a single invocation.
Event name or list of event names.
Event handler.
Base class for Peerix addons.