HeadlessProgram<'Model, 'Msg> Type
A program configuration for running the Elmish update loop without graphics.
HeadlessProgram shares the core Elmish architecture (Init, Update, Subscribe, Tick, FixedStep) with the full Program type, but excludes renderers and window configuration. Use HeadlessProgram.mkHeadless to create one.
Record fields
| Record Field |
Description
|
|
Controls when dispatched messages become eligible for processing.
|
|
Optional framework-managed fixed timestep configuration.
|
|
Creates initial model and commands when the headless runner starts.
|
|
Observer factories for receiving model snapshots each frame.
|
|
Optional frame profiler. Set via HeadlessProgram.withProfiler. When unset, the runner measures nothing.
|
|
Returns subscriptions based on current model state.
|
Optional function to generate a message each frame.
|
|
Handles messages and returns updated model and commands.
|
|
|
Optional context-aware update. When set, the runner calls this instead of HeadlessProgram, passing the GameContext the runner owns. Set via HeadlessProgram.mkHeadlessCtx.
|
Mibo