SudoSOS Back-end API / service/websocket/room-policy / RoomPolicyRegistry
Class: RoomPolicyRegistry ​
Registry for room policies.
Constructors ​
Constructor ​
ts
new RoomPolicyRegistry(): RoomPolicyRegistry;Returns ​
RoomPolicyRegistry
Methods ​
findRegistration() ​
ts
findRegistration(room): RoomRegistration;Finds a room registration that matches the given room name.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
room | string | The room name to match. |
Returns ​
The matching registration or undefined.
register() ​
ts
register(registration): void;Registers a room with its policy.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
registration | RoomRegistration | The room registration. |
Returns ​
void