Custom Modules in Cosmo Streams are available since Router version 0.266.0
Available Hooks
The Cosmo Streams system provides the following hook interfaces that you can implement with Custom Modules:SubscriptionOnCreateHandler: Called before a subscription is registered, allows modifying the event configuration (experimental)SubscriptionOnStartHandler: Called when a client subscribesStreamBeforeEventsDispatchHandler: Called once per batch of events received from a message broker, before it is dispatched to any subscriberOnReceiveEventHandler: Called when events are received from a message brokerOnPublishEventHandler: Called when events are going to be sent to a message broker