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

x/earthstar/src/entries/node.ts>ExtensionSyncWeb

Storage for private, distributed, offline-first applications.
Go to Latest
class ExtensionSyncWeb
implements IServerExtension
import { ExtensionSyncWeb } from "https://deno.land/x/earthstar@v10.2.0/src/entries/node.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
server: ReturnType<createServer>
private
syncers: Map<string, Syncer<WebSocket, F>>
private
wss: WebSocketServer

Methods

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