Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/earthstar/src/test/rpc-dep-node.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/src/test/rpc-dep-node.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

description: string
deviceId: string
readonly
isClosed: boolean
methods: BagType

Methods

addConnection(otherTrans: TransportLocal<BagType>): { thisConn: Connection<BagType>; otherConn: Connection<BagType>; }
close(): void