@wordinweb/server
v0.3.1
Published
Collaborative-editing host for wordinweb: routes clients to per-document sessions (thin transport over @wordinweb/collab)
Readme
@wordinweb/server
The Node collaboration host for WordInWeb.
This package is separate from wordinweb and wordinweb/collab. Browser
applications do not install or bundle it.
Run the included server
npm install @wordinweb/server
npx wordinweb-collab-serverThe command starts the HTTP and WebSocket server on port 1234. Set PORT to
change the port.
The server accepts encrypted and plaintext rooms by default. Set
WW_ENCRYPTED_ONLY=1 when the deployment must reject plaintext documents:
WW_ENCRYPTED_ONLY=1 npx wordinweb-collab-serverEmbed the server
import { CollabHub, startZeroCustodyServer } from "@wordinweb/server";See the anonymous sharing example for the encrypted deployment, configuration variables, and operational limits.
License
MIT. See LICENSE.
