Merge branch 'trigger-initial-next' into 'next'

Initial trigger of next branch

See merge request GeneralProtocols/xo/sync-client!2
This commit is contained in:
Kuldeep
2026-10-22 16:53:41 +00:00
+8 -9
View File
@@ -1,20 +1,19 @@
# Installation # Installation
``` ```
git clone https://git.harvmaster.com/Harvmaster/sync-server-example.git git clone hgit@gitlab.com:GeneralProtocols/xo/sync-client.git
cd sync-server-example cd sync-client
npm ci npm ci
``` ```
# Running # Running
There are 2 examples in the `src/index.ts` file. There are 2 examples in the `demo` folder.
- `testSSE()` - Example using the SSE client - The `suite` will run general read/write operations on various clients.
- `testWS()` - Example using the WebSocket client - 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`
To run the examples, you can use the following command:
```
npm run start
```