update to work with Yjs@13.0.0-82

This commit is contained in:
Kevin Jahns
2019-05-07 14:07:40 +02:00
parent 8fcaca933d
commit e8647afafc
5 changed files with 73 additions and 73 deletions

View File

@@ -33,9 +33,9 @@ import { WebsocketProvider } from 'yjs/provider/websocket.js'
const provider = new WebsocketProvider('http://localhost:1234')
// open a websocket connection to http://localhost:1234/my-document-name
const sharedDocument = provider.get('my-document-name')
const Doc = provider.get('my-document-name')
sharedDocument.on('status', event => {
Doc.on('status', event => {
console.log(event.status) // logs "connected" or "disconnected"
})
```