KestrunHostSignalRExtensions.BroadcastToGroupAsync method
Broadcasts a message to a specific SignalR group using the best available service provider.
public static Task<bool> BroadcastToGroupAsync(this KestrunHost host, string groupName,
string method, object? message, HttpContext? httpContext = null,
CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| host | The KestrunHost instance. |
| groupName | The name of the group to broadcast to. |
| method | The hub method name to invoke on clients. |
| message | The message to broadcast. |
| httpContext | Optional: The current HttpContext, if available. |
| cancellationToken | Optional: Cancellation token. |
See Also
- class KestrunHost
- class KestrunHostSignalRExtensions
- namespace Kestrun.Hosting