Skip to main content
Module

x/earthstar/src/test/test-deps.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/test-deps.ts";

Classes

A Transport that connects to other transports using the same BroadcastChannel channel in other tabs or windowns on the same machine. Many TransportBroadcastChannel can join the same channel to comunicate.

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.

Functions

Create an Opine application.

Serves HTTP requests with the given handler.

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.