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

x/willow/src/wgps/transports/in_memory.ts>TransportInMemory

Exploring Willow in the most efficient and sound programming language
Go to Latest
class TransportInMemory
implements Transport
import { TransportInMemory } from "https://deno.land/x/willow@0.2.1/src/wgps/transports/in_memory.ts";

Constructors

new
TransportInMemory(
syncRole: SyncRole,
incoming: FIFO<Uint8Array | TRANSPORT_CLOSED>,
outgoing: FIFO<Uint8Array | TRANSPORT_CLOSED>,
)

Properties

private
closed: boolean
private
incoming: FIFO<Uint8Array | TRANSPORT_CLOSED>
private
outgoing: FIFO<Uint8Array | TRANSPORT_CLOSED>
readonly
isClosed
role: SyncRole

Methods

close(): void
send(bytes: Uint8Array): Promise<void>