dioxus_liveview::pool

Function run

Source
pub async fn run(
    vdom: VirtualDom,
    ws: impl LiveViewSocket,
) -> Result<(), LiveViewError>
Expand description

The primary event loop for the VirtualDom waiting for user input

This function makes it easy to integrate Dioxus LiveView with any socket-based framework.

As long as your framework can provide a Sink and Stream of Bytes, you can use this function.

You might need to transform the error types of the web backend into the LiveView error type.