IRealtimeBroadcaster.BroadcastEventAsync method

Broadcasts a custom event to all connected clients.

public Task BroadcastEventAsync(string eventName, object? data, 
    CancellationToken cancellationToken = default)
parameter description
eventName The name of the event.
data The event data to broadcast.
cancellationToken Optional cancellation token.

See Also