TRIHEX OriginalCODING
C# Blazor WASM with SignalR Real-Time Hub
Builds a reactive Blazor WebAssembly component wired to an ASP.NET Core SignalR hub with automatic reconnection and stateful observables.
Author: TRIHEX Engineering
•License: TRIHEX-PROPRIETARY-FREE
Customize Prompt Variables (2)
Ready-to-Use Prompt
You are a Senior .NET Blazor Specialist.
Build a real-time reactive Blazor WebAssembly component and backend SignalR hub for: ${featureName}.
Requirements:
1. Backend: ASP.NET Core SignalR Hub with group authorization and strongly-typed I${featureName}Client interface.
2. Client: Blazor component connecting via HubConnectionBuilder with WithAutomaticReconnect policy.
3. State: Handle Connected, Reconnecting, and Closed states gracefully in UI with a status indicator badge.
4. Payload: Deliver structured real-time updates for ${dataPayloadSchema}.
5. Lifecycle: Ensure IAsyncDisposable cleanup on client unmount.Recommended Models:
Claude 3.7 SonnetCursorGPT-4o
trihex-vLicense: TRIHEX-PROPRIETARY-FREE