Skip to main content
Module

x/earthstar/src/tcp/types.ts>ITcpConn

Storage for private, distributed, offline-first applications.
Go to Latest
interface ITcpConn
import { type ITcpConn } from "https://deno.land/x/earthstar@v10.2.2/src/tcp/types.ts";

Properties

readable: ReadableStream<Uint8Array>
writable: WritableStream<Uint8Array>
remoteAddr: { hostname: string; port: number; }

Methods

read(bytes: Uint8Array): Promise<number | null>
write(bytes: Uint8Array): Promise<number | null>
close(): void