API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeHostRealm

@codexo/exojs / core / stable

Which kind of global scope the probes ran in. Capabilities are realm-local: the same browser reports different answers on its main thread and inside a worker, and neither answer is wrong. - `'window'`: a document's main thread. Input, audio and layout exist. - `'worker'`: a dedicated worker. No document, so no DOM input, no CSS pixel ratio and no `AudioContext`, but `OffscreenCanvas` rendering and nested workers are available. - `'unknown'`: neither - a server-side render, or an embedding host.

0
props
0
methods
0
events
Import
import { HostRealm } from '@codexo/exojs'

Which kind of global scope the probes ran in. Capabilities are realm-local: the same browser reports different answers on its main thread and inside a worker, and neither answer is wrong.

- `'window'`: a document's main thread. Input, audio and layout exist. - `'worker'`: a dedicated worker. No document, so no DOM input, no CSS pixel ratio and no `AudioContext`, but `OffscreenCanvas` rendering and nested workers are available. - `'unknown'`: neither - a server-side render, or an embedding host.

Definition1
"unknown" | "window" | "worker"
Source