Tournament Events

Lucra Event Listener setup

Use the contest listener to receive tournament events.

const unsubscribe = LucraSDK.addContestListener({
  onTournamentJoined: (id: string) => {
    console.log('Tournament joined:', id);
  },
});

// Call this when you no longer need the listener (e.g., on unmount).
unsubscribe();

Last updated