SystemInfo

Runtime-environment flags shared across the Krill stack.

Properties

Link copied to clipboard

The hostname from the browser's window.location — set at WASM startup.

Link copied to clipboard

The TCP port the WASM bundle was served from, or 0 outside of a browser context. krill.zone.shared.node.NodeHttp reads this to override the dialled host on WASM (where the browser already knows the right server).

Functions

Link copied to clipboard

true when the current process is hosting a Krill server (vs. a client).

Link copied to clipboard
fun setReady(value: Boolean)

Toggles the "process is fully initialised" flag — read by health probes.

Link copied to clipboard
fun setServer(value: Boolean)

Marks the current process as a Krill server. Called once at server startup.