SplitScript reference / Migration / init lifecycle block
init lifecycle block
Migration from ASL
Source pattern
Look for the ASL concept init lifecycle block in the source. The semantic difference below is more important than a token-for-token rewrite.
Canonical SplitScript
Use the canonical language and API symbols linked below.
Semantic difference
Use onAttach for pre-poll process discovery and onStateReady for post-refresh snapshot initialization.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
onAttach (language)
-
onStateReady (language)