Skip to content

SudoSOS Back-end API / service/websocket/room-policy / RoomRegistration

Interface: RoomRegistration ​

Room registration with its policy.

Properties ​

pattern ​

ts
pattern: string;

Room pattern (e.g., "pos:{id}:transactions" or exact match like "system"). Supports patterns with {id} placeholder. This is for human readability.


policy ​

ts
policy: RoomPolicy;

Policy function that determines if a user can subscribe to this room.