App lifecycle events
Events allow developers to perform setup or teardown tasks, such as registering or unregistering a webhook in a third-party system or validating a user’s connections.
Event files MUST:
src/events
.event.ts
(or .event.js
) suffix.export default async function
that:
{ connection: Connection }
argumentvoid
The arguments passed to the handler function depend on the type of event and are documented below.
connection-added
– called when a connection is addedconnection-removed
– called when a connection is removedApp lifecycle events
Events allow developers to perform setup or teardown tasks, such as registering or unregistering a webhook in a third-party system or validating a user’s connections.
Event files MUST:
src/events
.event.ts
(or .event.js
) suffix.export default async function
that:
{ connection: Connection }
argumentvoid
The arguments passed to the handler function depend on the type of event and are documented below.
connection-added
– called when a connection is addedconnection-removed
– called when a connection is removed