subscribeToMasterRoundResult(roundId: number,onResult: (payload: RealtimePostgresInsertPayload<Database["public"]["Tables"]["MasterRoundResult"]["Row"]>) => void,onSubscribed?: (status: REALTIME_SUBSCRIBE_STATES,err?: Error,) => void,): RealtimeChannel
Subscribe to MasterRoundResult inserts for a specific round.
roundId: number
- The ID of the master round to monitor
onResult: (payload: RealtimePostgresInsertPayload<Database["public"]["Tables"]["MasterRoundResult"]["Row"]>) => void
- Callback function that will be called when the result is available
optional
onSubscribed: (status: REALTIME_SUBSCRIBE_STATES,err?: Error,) => void
- Optional callback that will be called when the subscription is established
A RealtimeChannel object that can be used to manage the subscription