Skip to main content
Module

x/earthstar_streaming_rpc/mod.ts

Like JSON-RPC, but supports streaming.
Latest
import * as earthstarStreamingRpc from "https://deno.land/x/earthstar_streaming_rpc@v5.0.1/mod.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.

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.