ISseBroadcaster.Subscribe method

Subscribes a client to broadcast SSE events.

public SseClientSubscription Subscribe(CancellationToken cancellationToken)
parameter description
cancellationToken Cancellation token used to disconnect the client.

Return Value

A subscription containing the client ID and a channel reader for SSE payloads.

See Also