Deliver real-time sports scores, play-by-play, and scoreboards with PubNub
Does it follow best practices?
Evaluation — 100%
↑ 2.94xAgent success when using this tile
Validation for skill structure
A basketball stats company is building a web application that shows a live play-by-play feed for NBA games. Fans open the app at various points during a game -- some from tip-off, others in the middle of the fourth quarter. The feed must show every play in the correct chronological order, even when network disruptions cause events to arrive out of sequence or when fans join after the game is already underway.
The company has noticed that during high-traffic playoff games, brief connection drops are common, and their current implementation loses events during those windows. They need a robust client-side module that maintains the timeline integrity regardless of network conditions, handles reconnection gracefully, and can catch up a late-joining user to the current game state.
Produce a JavaScript file called nba-play-timeline.js that: