Skip to content

SudoSOS Back-end API / service/websocket/room-parser

service/websocket/room-parser ​

Interfaces ​

InterfaceDescription
ParsedRoomRepresents a parsed room name with its components.

Functions ​

FunctionDescription
matchesRoomPatternChecks if a room name matches a pattern. Supports exact matches and patterns with {id} placeholder.
parseRoomParses 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