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

x/earthstar/src/server/extensions/sync_web.ts>ExtensionSyncWeb

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
class ExtensionSyncWeb
implements IServerExtension
import { ExtensionSyncWeb } from "https://deno.land/x/earthstar@v10.0.0/src/server/extensions/sync_web.ts";

An extension which enables synchronisation over the web via HTTP.

Constructors

new
ExtensionSyncWeb(opts?: ExtensionSyncOpts<F>)

Properties

private
formats: FormatsArg<F> | undefined
private
path: string
private
peer
private
syncers: Map<string, Syncer<WebSocket, F>>

Methods

handler(req: Request): Promise<Response | null>
register(peer: Peer)