SudoSOS Back-end API / service / websocket / event-guards
Service: Websocket: Event Guards ​
Type Aliases ​
| Type Alias | Description |
|---|---|
| EventGuard | Guard function that determines if an event should be emitted to a room. |
Variables ​
| Variable | Description |
|---|---|
| ForTerminalPaymentGuard | ForTerminalPayment guard checks whether the event is about the terminal payment the room is scoped to. Terminal payments are addressed individually rather than by point of sale: once one is cancelled it no longer references a transaction, so there is no point of sale left to route it by. |
| ForUserGuard | ForUser guard checks if transaction belongs to the user in the room. |
| InPosGuard | InPos guard checks if transaction belongs to the POS in the room. |