How omrs2002/webappsignalr works
WebAppSignalR is a small Razor Pages application centered on real-time chat. A user enters a name and message in the browser; the chat client validates input, invokes the SignalR hub, and the hub validates and broadcasts the message with a timestamp to connected clients. Program.cs configures and maps the web and hub endpoints. The supplied excerpts do not show how the chat script is included in the page, so that UI link is unverified; the README provides no additional product capabilities.
Main entry points: Program.cs Application host · Chat.js Chat client · ChatHub.cs Chat hub · Index.cshtml Chat page
Components 8
Web interface
- Chat page
WebAppSignalR/Pages/Index.cshtml - Index handler
WebAppSignalR/Pages/Index.cshtml.cs - Chat client
WebAppSignalR/wwwroot/js/Chat.js
Realtime chat
- Chat hub
WebAppSignalR/Hubs/ChatHub.cs
Application hosting
- Application host
WebAppSignalR/Program.cs - Error page handler
WebAppSignalR/Pages/Error.cshtml.cs - Privacy page handler
WebAppSignalR/Pages/Privacy.cshtml.cs
Other components
- Chat user
Connections 7
- Chat user → Chat page: uses
- Chat page → Chat client: loads
- Chat client → Chat hub: invokes SendMessage
WebAppSignalR/wwwroot/js/Chat.js - Chat hub → Chat client: broadcasts ReceiveMessage
WebAppSignalR/Hubs/ChatHub.cs - Application host → Chat hub: maps endpoint
WebAppSignalR/Program.cs - Application host → Index handler: maps Razor Pages
WebAppSignalR/Program.cs - Application host → Error page handler: routes errors
WebAppSignalR/Program.cs