I have a number of Azure functions which have HTTP input and output bindings. Within those functions, I would like to send a message to clients via SignalR.
There seem to be a number of ways to do this and I'm not sure which to use. Based upon my (mis)understanding, I have these options:
Output bindings. This is what the Azure Functions SignalR docs show, but I would prefer to keep my output bindings as HTTP.
Deriving a class from
ServerlessHub
and sending messages via itsClients
object. This seems a good way to do it if you want to have SignalR input trigger functions. I also didn't see where to specify the connection information here.Creating a
HubConnection
andIHubProxy
, then using the proxy to invoke methods. This seems like the ASP.NET Core way but not necessarily the Functions way.
Are these options correct? What approach should I take?