Skip to main content
Access via:io.platform

Platform API.

3 Methods

onShuttingDown()⚓︎

(callback: (args: ShuttingDownEventArgs) => Promise<{ prevent: boolean }>) => () => void

Notifies when the io.Connect platform is about to be shut down or restarted.

Parameters (1)

Name Type Required Description
callback⚓︎ (args: ShuttingDownEventArgs) => Promise<{ prevent: boolean }>

Callback function for handling the event. You can use this callback to execute custom code before the platform shuts down or restarts. The available time for the execution of your code is 60 seconds. To prevent the platform shutdown or restart, the callback must resolve with an object with a prevent property set to true.

restart()⚓︎

(options?: ExitOptions) => Promise<void>

Restarts the io.Connect platform.

Parameters (1)

Name Type Required Description
options⚓︎ ExitOptions x

Settings for the restart operation.

shutdown()⚓︎

(options?: ExitOptions) => Promise<void>

Shuts down the io.Connect platform.

Parameters (1)

Name Type Required Description
options⚓︎ ExitOptions x

Settings for the shutdown operation.