Kegan Dougal 8a677347f8 server/bugfix: fix panic on invited rooms; expose v2 server url to client
- Expose `/client/server.json` so clients know the CS API base endpoint for things like media requests
  (and in future sending events, etc)
- Tidy up a few comments.
2022-02-24 14:14:59 +00:00
..
2022-02-23 19:26:38 +00:00
2022-02-22 18:24:35 +00:00

Sliding Sync Client

Client

This is a basic JS client for Sliding Sync. It is designed to be easily readable and is aimed at developers who want to implement Sliding Sync into their clients. The client is broken up into:

  • devtools.js : Code for showing developer statistics.
  • index.js : Entry point for the client and hooks into the DOM.
  • render.js : Code to convert data structures into DOM nodes.
  • sync.js : Sliding Sync code.

To understand sliding sync, you need to read index.js and sync.js. The rest of it can be ignored.

The client code uses Prettier as a code formatter.