Add info about y-websocket-server to quick-start
This commit is contained in:
parent
5b8d3ced3e
commit
9d7e5eaec8
16
README.md
16
README.md
@ -11,6 +11,22 @@ The Websocket Provider is a solid choice if you want a central source that handl
|
|||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
|
### Install dependencies
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm i y-websocket
|
||||||
|
```
|
||||||
|
|
||||||
|
### Start a y-websocket server
|
||||||
|
|
||||||
|
This repository implements a basic server that you can adopt to your specific use-case. [(source code)](./bin/)
|
||||||
|
|
||||||
|
Start a y-websocket server:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
HOST=localhost PORT=1234 npx y-websocket-server
|
||||||
|
```
|
||||||
|
|
||||||
### Client Code:
|
### Client Code:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user