lab / realtime sync

Real-time Synchronization

Demonstrates SignalR-based real-time state synchronization with automatic master election, live counters, and synchronized interactions across multiple browser sessions.

Features:

  • Auto Counter: Increments every second automatically across all users
  • Live Clock: Real-time synchronized clock showing the same time for everyone.
  • Random Colors: Component background color changes automatically and syncs to all users
  • Live Progress: Progress bars that update automatically with random data
  • Master Failover: If master user leaves, another user automatically takes over!
Testing Instructions:
  1. Open this page in multiple browser windows/tabs
Auto Counter

2

Updates every second
Synchronized Clock

00:28:57

Same time for everyone
Live Progress Indicators
23%
37%
11%
Auto-Typing Simulator
Master Controller
Watch text appear automatically in real-time across all browsers (You are controlling the typing)
Type here - changes sync to all users instantly
Live Statistics & Master Info
Master Status: I have the Master Lock
Current Master: 7_dtL-IO6cyRv1tQgBsPCg
Connection ID: 7_dtL-IO6cyRv1tQgBsPCg


Random Number: 42
Auto Updates: 2
Temperature: 23°C
Status: Online
Connected - 1 user(s) on this page
An unhandled error has occurred. Reload 🗙

Reconnecting… Still reconnecting… Connection lost Session paused Session expired

The connection to the server dropped. This usually only takes a moment.

No answer yet. Trying again in 0s.

Couldn't reach the server. Check your connection, then try again.

This tab sat idle, so the server set the session aside. Pick up where you left off.

The server no longer has this session. Reload the page to start fresh.