pub fn serve_web_viewer(
config: WebViewerConfig,
) -> Result<WebViewerServer, WebViewerServerError>
Expand description
Serves the Rerun Web Viewer (HTML+JS+Wasm) over http.
The server will immediately start listening for incoming connections
and stop doing so when the returned WebViewerServer
is dropped.
Note: this does NOT start a gRPC server.
To start a gRPC server, use crate::RecordingStreamBuilder::serve_grpc
and connect to it
by setting WebViewerConfig::connect_to
to rerun+http://localhost/proxy
.
Note: this function just calls WebViewerConfig::host_web_viewer
and is here only
for convenience, visibility, and for symmetry with our Python SDK.