KestrunContext.BroadcastToGroupAsync method
Asynchronously broadcasts a message to a specific group of SignalR clients using the IRealtimeBroadcaster service.
public Task<bool> BroadcastToGroupAsync(string groupName, string method, object? message,
CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| groupName | The name of the group to broadcast the message to. |
| method | The name of the method to invoke on the client. |
| message | The message to broadcast. |
| cancellationToken | Optional: Cancellation token. |
See Also
- record KestrunContext
- namespace Kestrun.Models