From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations
Unlock this course with a free trial
Join today to access over 25,000 courses taught by industry experts.
Understanding SignalR applications
From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations
Understanding SignalR applications
- [Instructor] Server-side web apps and services are great at sitting around waiting on request and then sending responses to those requests back to the client. However, that means the client won't know about new information unless they request and receive it. SignalR adds real-time web functionality to apps and gives servers the ability to push content to clients at any time. This can be great for things like real-time chat apps, corporate dashboards that always need the latest data, and any app requiring time-sensitive alerts. SignalR accomplishes this by supporting two-way communication between the server and clients. The server acts as a hub for this communication and can push messages to all clients or individual clients as needed. ASP.NET Core even provides a base class named hub you can use to implement your SignalR servers. SignalR supports multiple transports for the communication between the server and clients. WebSockets are the preferred transport, and will automatically…