module
live
Data that keeps changing: timers, connections and what their messages do to a table. The browser supplies the actual timers and sockets through set_host, so all of this runs the same under test.
Modules
- graphql_ws
graphql-ws: how GraphQL subscriptions run over a WebSocket.
Structs
- Cancel
Stops something when dropped.
- Connect
Where and how to connect for live updates.
- Connection
An open connection: closes when dropped.
- Host
What only the browser can do.
Enums
Functions
backoff_ms
pub fn backoff_ms(attempt: u32) -> f64How long to wait before reconnecting: 1, 2, 4… seconds, at most 30.
parse_message
pub fn parse_message(spec: &Spec, text: &str) -> Option<Table>Read a message into rows. A None is a message that isn't data, which a connection is free to send: pings, notices.
set_host
pub fn set_host(host: Host)Set the host. A build has none, so nothing live starts while prerendering.