21 lines
363 B
Markdown
21 lines
363 B
Markdown
# Installation
|
|
|
|
```
|
|
git clone https://git.harvmaster.com/Harvmaster/sync-server-example.git
|
|
cd sync-server-example
|
|
npm ci
|
|
```
|
|
|
|
# Running
|
|
|
|
There are 2 examples in the `src/index.ts` file.
|
|
|
|
- `testSSE()` - Example using the SSE client
|
|
- `testWS()` - Example using the WebSocket client
|
|
|
|
To run the examples, you can use the following command:
|
|
|
|
```
|
|
npm run start
|
|
```
|