Files
sync-server-example/readme.md
T

20 lines
623 B
Markdown

# Installation
```
git clone hgit@gitlab.com:GeneralProtocols/xo/sync-client.git
cd sync-client
npm ci
```
# Running
There are 2 examples in the `demo` folder.
- The `suite` will run general read/write operations on various clients.
- The `tui` will allow you to write values into the console as well as monitor for updates.
- `npx tsx ./demo/suite.ts` - Optionally, add `sse` | `ws` | `encryped` | `encryptedPerResource` to select a specific implementation to test. Defaults to all clients.
- `npx tsx ./demo/tui.ts` - Optionally add `false` to use a SSE without encryption. Default is `EncryptedClientPerResource`