Testing it all
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
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:
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...