Swiftybase
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 of SSEPublisher, 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.

On this page