Skip to main content

EngineViewport

Function EngineViewport 

Source
pub fn EngineViewport<P: WorkerProtocol + 'static>(
    props: EngineViewportProps<P>,
) -> impl IntoView
Expand description

Renders the Viewport wired to engine: it translates ViewportEvents into worker messages, completes the connection on connect, and updates the engine state (and any application message handler) from messages the worker sends back.

ยงRequired Props