Overview of the SubscriptionOnCreate Handler
The SubscriptionOnCreate handler is an experimental custom module hook that runs once per subscription before it is registered with the message broker. It allows developers to modify the subscription event configuration in place. This is primarily used for dynamic subject routing (NATS, Redis, Kafka) or overriding provider-level defaults on a per-request basis.
Limitations:
- It cannot emit events to the client.
- It only applies to Cosmo Streams / EDFS subscriptions, not regular GraphQL subscriptions.