Stage:
Public Alpha
Available on self-hosted:
Yes
Broadcast Replay enables private channels to access messages sent earlier, perfect for catching up on missed messages when reconnecting or loading recent history.
Key benefits
- Catch up on missed messages: Retrieve messages sent while disconnected.
- Load recent history: Display recent chat messages or activity when joining a channel.
- Flexible retrieval: Specify timestamp and limit for precise message fetching.
- Private channel only: Works exclusively with private channels for security.
Configuration
Requires since parameter (epoch timestamp in milliseconds) for earliest message retrieval. Optional limit parameter (max 25, positive integer) controls the number of messages returned.
Broadcast Replay is valuable for:
- Chat applications loading recent message history
- Collaborative tools syncing state after network interruption
- Real-time dashboards catching up on missed updates
- Applications requiring recent activity display
Limitations
Only available for messages published via Broadcast from Database. Only works in private channels. Available in JavaScript client version 2.37.0 and later.
Broadcast Replay ensures users never miss important real-time updates, even when temporarily disconnected.