SudoSOS Back-end API / service/websocket/room-parser
service/websocket/room-parser ​
Interfaces ​
| Interface | Description |
|---|---|
| ParsedRoom | Represents a parsed room name with its components. |
Functions ​
| Function | Description |
|---|---|
| matchesRoomPattern | Checks if a room name matches a pattern. Supports exact matches and patterns with {id} placeholder. |
| parseRoom | Parses a room name into its components. Supports patterns: - {entity_type}:{entity_id}:{event_type} (e.g., "pos:123:transactions") - {entity_type}:{event_type} (e.g., "transactions:all") for global listeners - Pattern with {id} placeholder (e.g., "pos:{id}:transactions") for matching |