Merge pull request #29 from reciperadar/fixups/readme-client-example

README: Small fixup for the example client code snippet
This commit is contained in:
Kevin Jahns 2020-10-18 18:35:21 +02:00 committed by GitHub
commit dc4c714dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ The Websocket Provider is a solid choice if you want a central source that handl
```js ```js
import * as Y from 'yjs' import * as Y from 'yjs'
import { WebsocketProvider } from 'yjs/provider/websocket.js' import { WebsocketProvider } from 'y-websocket'
const doc = new Y.Doc() const doc = new Y.Doc()
const wsProvider = new WebsocketProvider('ws://localhost:1234', 'my-roomname', doc) const wsProvider = new WebsocketProvider('ws://localhost:1234', 'my-roomname', doc)