Falcon Server emits several event hooks that can be used to add your own custom code.
We use this package as a base for our events.
To use one of these events you'll need to first import
Events enum from
You can then use
eventEmitter to intercept these events.
eventEmitter is a public prop for the
FalconServer class and is passed to our API data source and endpoint packages.
Due to the way API data sources are initiated we don't advise watching for events in them.
You can however
emit a new or existing event.
API data source package
Errors in our API data source packages automatically
Events.ERROR event so you can latch onto this in
server/index.js if you want to log your errors using a 3rd party service.