sync
Functions
Function
Description
Example
Description
Usage Examples
Cross-Tab Communication
// Open two tabs and communicate between them
// In Tab 1: Listen for messages
const sync = dphelper.sync.tab('chat', (data) => {
console.log('Received:', data);
});
// In Tab 1: Send message to other tabs
sync.post({ message: 'Hello from Tab 1!' });
// When done, close the channel
sync.close();Real-time Updates Across Tabs
Auto-syncing localStorage
With Encryption
Pulse Event Bus
Complete Real-time App
Details
Last updated