Summary
This chapter was entirely dedicated to SignalR, an open-source library developed by Microsoft and shipped with ASP.NET Core that allows us to add real-time functionality to web applications.
We spent the first part of the chapter understanding the concepts of Real-Time HTTP and Server-side Push, reviewing the various techniques and workarounds used since the beginning of the Internet to achieve or emulate such capabilities; then we quickly reviewed the main features of SignalR, which leverages most of these techniques to provide an abstraction layer accessible through a proprietary API and built around concepts such as hubs, protocols, connections, users, and groups.
Right after that, we put our hand to code and implemented SignalR in ASP.NET Core and Angular, as well as setting up and configuring the required Microsoft NuGet and npm packages. More specifically, we started with implementing a server-initiated broadcast event that could be issued by executing a dedicated...