import { type ConnectionStatus } from "https://deno.land/x/earthstar_streaming_rpc@v5.0.1/src/types.ts";
Status always starts as CONNECTING, then can switch back and forth between OPEN and ERROR, (or skips OPEN and ERROR completely) and finally ends at CLOSED.
ERROR means something failed but it's ok to try again. CLOSED means it's never coming back.