Real-Time Mouse Tracking
Real-time collaborative mouse tracking using SignalR. See other users' mouse cursors as they move around the page.
Table of Contents
Interactive Demo
Test Instructions
Technical Details
References
Demo
Sample Content Area 1
Move your mouse over this area. Other users will see your cursor position in real-time!
Sample Content Area 2
This demonstrates how mouse tracking works across different UI elements within the page.
Test Instructions
Step 1: Open this page in multiple browser windows or tabs
Step 2: Move your mouse around within the page
Step 3: Watch the other windows to see your cursor appear as a blue pointer
Step 4: Navigate to the Home page in one window - you'll see the cursor disappears from this page
Step 5: The connection status shows how many users are currently on this specific page
References
For more detailed information and advanced scenarios, check out these helpful resources:
SignalR with Blazor Server
Official Microsoft documentation for using SignalR with Blazor Server applicationsReal-time Web Applications with SignalR
Introduction to SignalR for building real-time web applicationsJavaScript Interop in Blazor
Guide for calling JavaScript functions from .NET and vice versa in BlazorHigh-Frequency Realtime with SignalR (Tutorial)
Microsoft tutorial for high-frequency real-time updates with SignalR (mouse tracking, gaming, etc.)