1Connect to SignalR
The page asks the SignalR endpoint to negotiate, gets back a connection ID, the transport (WebSockets) and the service URL, then opens the connection.
Connection: connecting…
2Send
Adds a new message to the queue demo-asb-queue-triggers-azure-function. The form posts
in the background, because a full page reload would drop the SignalR connection.
3The Azure Function
Triggered by the queue message, it processes it and:
- calls a method on the SignalR hub (server-side code in this MVC app)
- the hub broadcasts the message to everyone connected
The Function: https://weatherfunctionopenmeteo.azurewebsites.net/api/GetAzureServiceBusMessage
4Messages back from the Function
The SignalR script on this page adds each one as it arrives (anyone else on the page sees them too).
- Waiting for a message…