Skip to main content
Module

x/earthstar/deps.ts>TransportLocal

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

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

This is mostly useful for testing.

Constructors

new
TransportLocal(opts: ITransportLocalOpts<BagType>)

Type Parameters

BagType extends FnsBag

Properties

connections: WatchableSet<IConnection<BagType>>
description: string
deviceId: string
readonly
isClosed
methods: BagType
status: Watchable<TransportStatus>

Methods

close(): void
onClose(cb: Thunk): Thunk