Constructor
# new EventsSubscriptionController(clientContext, options, registry)
Exposes POST subscribe and POST unsubscribe endpoints that upsert or
remove the requester's topic subscriptions in the ObserverSubscriptionRegistry.
Both endpoints no-op with { enabled: false } when subscription mode is disabled.
REST controller managing SSE topic subscriptions
Parameters:
| Name | Type | Description |
|---|---|---|
clientContext |
DecafRequestContext
|
The active request context |
options |
ObserverEventsOptions
|
Observer events configuration (injected via |
registry |
ObserverSubscriptionRegistry
|
The topic-subscription registry |