ygo-server

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Command ygo-server is the stand-alone WebSocket sync server for ygo documents. It speaks the bare y-websocket subset of the Hocuspocus envelope (Sync + Awareness + QueryAwareness), which covers the universal interop subset shared by every JS Yjs adopter.

Usage:

ygo-server [-addr :8080] [-store path/to/ygo.db]

Without -store the server runs purely in-memory; documents are lost when their last connection disconnects. With -store the server persists every applied update to a SQLite database and loads the document history on first connect of a fresh server process.

Mount point: documents are addressed by the URL path. A client connecting to ws://host:8080/my-doc operates on docName "my-doc". The leading slash is stripped; query strings are ignored (matching y-websocket's convention).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL