Skip to main content
Module

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

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
import * as earthstar from "https://deno.land/x/earthstar@v9.3.3/src/test/rpc-dep-node.ts";

Classes

A Transport that is able to receive and respond to HTTP requests.

A Transport that connects directly to other Transports in memory, on the same machine.

Variables

Make a random string id

Return a random integer (inclusive of endpoints)

Interfaces

A Deferred is a Promise and its resolve and reject methods.

Converts method calls to Envelopes and passes them to a Transport.

Manages a specific kind of connection (an HTTP server, etc).

Typical options for the Transport constructor.

Type Aliases

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.