Skip to content

SudoSOS Back-end API / service / websocket / event-guards

Service: Websocket: Event Guards ​

Type Aliases ​

Type AliasDescription
EventGuardGuard function that determines if an event should be emitted to a room.

Variables ​

VariableDescription
ForTerminalPaymentGuardForTerminalPayment 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.
ForUserGuardForUser guard checks if transaction belongs to the user in the room.
InPosGuardInPos guard checks if transaction belongs to the POS in the room.