Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/streams/stream_utils.ts>websocketWritable

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function websocketWritable
import { websocketWritable } from "https://deno.land/x/earthstar@v10.0.0-alpha.3/src/streams/stream_utils.ts";

Parameters

socketOrUrl: WebSocket | string
prepareToSend: (outgoing: T) =>
| string
| ArrayBufferLike
| Blob
| ArrayBufferView