Skip to main content
Module

x/earthstar/src/test/rpc-dep-node.ts>ConnectionStatus

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
type alias ConnectionStatus
Re-export
import { type ConnectionStatus } from "https://deno.land/x/earthstar@v9.3.3/src/test/rpc-dep-node.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"