Chapter 6. Exemplifying Real-time Web Functionality
No web user wants to hit refresh constantly for the latest information. They want everything right now, automatically. Real-time web functionality is very common, and most modern apps require it. Many apps rely on live data to provide pertinent information to their users as soon as it becomes available. In this chapter, you’ll learn how to implement real-time web functionality using ASP.NET Core SignalR (or just SignalR). You’ll then find out how to create a server-side (Hub
) that will expose many live data points, such as real-time alerts and notifications, a messaging system for live-user interactions, and a joinable active Twitter stream. Finally, you’ll learn how to consume this data from our Blazor WebAssembly app, which will respond to and interact with these live data points in compelling ways.
Defining The Server-side Events
For your Blazor app to have real-time web functionalities, you need a way for it to receive live data. ...
Get Learning Blazor now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.