Function StackSSE
Start SSE Publisher
Starts an SSEPublisher
, enabling it to begin broadcasting events to all connected and registered clients.
Use this function after creating a publisher instance—such as a Redis-based SSEPublisher
—to activate the publishing mechanism.
Config
- Publisher
An instance ofSSEPublisher
, typically created once and registered globally.
This instance handles broadcasting events to all clients subscribed to specific channels.
Check the Publish SSE
function to learn how to send events using the publisher, including a full example.