Class

EventsSubscriptionController

for-nest.events.EventsSubscriptionController(clientContext, options, registry)

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 OBSERVER_EVENTS_OPTIONS)

registry ObserverSubscriptionRegistry

The topic-subscription registry

View Source events-module/EventsSubscriptionController.ts, line 17