-
Book Overview & Buying
-
Table Of Contents
ASP.NET Core 6 and Angular - Fifth Edition
By :
It’s finally time to test all we have done so far.
Launch the two projects in Debug mode and, from the Angular app, navigate to the HealthCheckComponent.
We should see no UI differences up to this point, since we’re still performing the initial HTTP call to fetch the health checks data: however, if we take a look at the browser’s console, we can already see the console.log entries showing that the connection with the Hub has been established successfully, as shown in the following screenshot:

Figure 14.1: SignalR connection started
Now we can test if the server-initiated update works as expected. To do that, open a different browser (or tab) and navigate to the following URLs:
https://localhost:40443/api/broadcast/update
https://localhost:40443/api/broadcast/update2
As we already know, the former endpoint is handled by the BroadcastController and the latter using the Minimal API. However, both of them should produce...