-
Couldn't load subscription status.
- Fork 47
Open
Description
The Hub class allows for the use of strongly typed Hub clients. It would be great if the Azure SignalR service could also support the same! eg.
public interface IChatClient
{
Task ReceiveMessage(string message);
}
public class ClientHub : ServerlessHub<IChatClient>
{
...
[FunctionName(nameof(SendClientMessage))]
public async Task SendClientMessage([SignalRTrigger] InvocationContext invocationContext, ILogger logger)
{
await Clients.All.ReceiveMessage("Hello World!");
}
}
https://docs.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-3.1#strongly-typed-hubs
phantomcosmonaut, mariusGundersen and Cogax
Metadata
Metadata
Assignees
Labels
No labels