Azure / Azure-Functions

1.12k stars 199 forks source link

Question: How can I notify a client from a function app using SignalR? #2534

Open jonBlanco1 opened 3 months ago

jonBlanco1 commented 3 months ago

Hi, we have a project that relies heavily on function apps. We also use Azure heavily. How can we notify a client from a function app using SignalR?

For example, our typical flow is the following:

  1. Client calls API (regular REST call),
  2. API sends message to Service Bus,
  3. Function with a service bus trigger starts executing,

So after this function finishes, how can we notify the client using SignalR?

bhagyshricompany commented 3 months ago

Thanks for informing You can refer to the official Azure documentation for detailed guidance on setting up and using SignalR with Azure Functions:

Azure SignalR Service Documentation: https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-overview

Integrate SignalR with Azure Functions: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-signalr-service

Service Bus Triggered Azure Functions: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-trigger