Skip to content
Hooks
Updated Dec 08, 2025
- Register global hooks on the router or per-resource hooks (
before_connect,
after_connect, before_message, after_message, etc.).
- Execution order is onion-style: global → parent → child → handler → child →
parent → global.
- Raise from a
before_* hook to terminate negotiation early.