Skip to main content

Module outbound

Module outbound 

Source
Expand description

Everything Bevy sends to JS: UiEvent and the Outbound envelope.

Structs§

UiEvent
An interaction event sent from Bevy back into JS, where the reconciler dispatches it to the matching React handler.

Enums§

Outbound
Everything that flows Bevy -> JS over the single outbound channel. Internally tagged (t) so serde_v8 produces a plain JS object the JS event loop can switch on. Each variant serializes to a map, as internal tagging requires.
ResponseResult
The outcome of a React -> Bevy request. Internally tagged (status) so JS reads result.status === "ok". The error is a message, surfaced to JS as a rejected promise — the typed success value is the only thing in the schema.