Skip to main content

AppStartingCallback

AppStartingCallback = (rootStartState: RootAppStartState) => Promise<void>

Callback invoked during app server startup, after the database initializes but before the server begins processing events. Use this to set up your app's initial state from the community's current data.

The callback receives a RootAppStartState object containing the community ID, roles, members, global settings, and the app's channel ID.

Parameters

ParameterType
rootStartStateRootAppStartState

Returns

Promise<void>