Documentation
¶
Overview ¶
Command ygo-server is the legacy name of the stand-alone WebSocket sync server for ygo documents.
Deprecated: use cmd/yserve instead — same server, plus auto-versioning flags; new server features land there. ygo-server remains a working alias for existing deployments and will be removed in a future major release.
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).