Skip to main content
Module

x/earthstar/deps.ts>TransportHttpClient

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
class TransportHttpClient
implements ITransport<BagType>
import { TransportHttpClient } from "https://deno.land/x/earthstar@v9.3.3/deps.ts";

Constructors

new
TransportHttpClient(opts: ITransportOpts<BagType>)

Type Parameters

BagType extends FnsBag

Properties

_pullStates: Map<string, InFlightPullState<BagType> | ScheduledPullState<BagType> | ClosedPullState>
connections: WatchableSet<IConnection<BagType>>
deviceId: string
readonly
isClosed
methods: BagType
status: Watchable<TransportStatus>

Methods

addConnection(url: string): Connection<BagType>
close(): void
onClose(cb: Thunk): Thunk