re_sdk::web_viewer

Function new_sink

Source
pub fn new_sink(
    open_browser: bool,
    bind_ip: &str,
    web_port: WebViewerServerPort,
    grpc_port: u16,
    server_memory_limit: MemoryLimit,
) -> Result<Box<dyn LogSink>, WebViewerSinkError>
Expand description

Serve log-data over gRPC and serve a Rerun web viewer over HTTP.

If the open_browser argument is true, your default browser will be opened with a connected web-viewer.

If not, you can connect to this server using the rerun binary (cargo install rerun-cli --locked).

NOTE: you can not connect one Session to another.

This function returns immediately.