Skip to main content
Module

x/earthstar_streaming_rpc/mod.ts>ConnectionStatus

Like JSON-RPC, but supports streaming.
Latest
type alias ConnectionStatus
Re-export
import { type ConnectionStatus } from "https://deno.land/x/earthstar_streaming_rpc@v5.0.1/mod.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.

definition:
| "CONNECTING"
| "OPEN"
| "ERROR"
| "CLOSED"