🔄 Sync Protocol Guide
Learn about XHub Chat's sync protocol and how it works.
Sliding Sync
XHub Chat uses sliding sync for efficient data synchronization:
const client = createClient({
// ... config
sync: {
enabled: true,
slidingSync: true,
},
});
How It Works
- Initial sync loads cached data
- Incremental syncs receive only new updates
- Automatic reconnection on network issues