update y-websocket to fix the awareness states issue
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
"vue-live": "^1.16.0",
|
"vue-live": "^1.16.0",
|
||||||
"y-indexeddb": "^9.0.5",
|
"y-indexeddb": "^9.0.5",
|
||||||
"y-webrtc": "^10.1.6",
|
"y-webrtc": "^10.1.6",
|
||||||
"y-websocket": "^1.3.7",
|
"y-websocket": "^1.3.8",
|
||||||
"yjs": "^13.4.5"
|
"yjs": "^13.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -72,9 +72,6 @@ const CollaborationCursor = Extension.create({
|
|||||||
|
|
||||||
this.options.provider.on('status', (event: { status: string }) => {
|
this.options.provider.on('status', (event: { status: string }) => {
|
||||||
if (event.status === 'connected') {
|
if (event.status === 'connected') {
|
||||||
// FIX: Reset the awareness state
|
|
||||||
// PR: https://github.com/yjs/y-protocols/issues/7
|
|
||||||
this.options.provider.awareness.setLocalState({})
|
|
||||||
this.options.provider.awareness.setLocalStateField('user', this.options.user)
|
this.options.provider.awareness.setLocalStateField('user', this.options.user)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -14966,10 +14966,10 @@ y-webrtc@^10.1.6:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
ws "^7.2.0"
|
ws "^7.2.0"
|
||||||
|
|
||||||
y-websocket@^1.3.7:
|
y-websocket@^1.3.8:
|
||||||
version "1.3.7"
|
version "1.3.8"
|
||||||
resolved "https://registry.yarnpkg.com/y-websocket/-/y-websocket-1.3.7.tgz#d04009a4835a13be9dac9238646199c05a4ff13f"
|
resolved "https://registry.yarnpkg.com/y-websocket/-/y-websocket-1.3.8.tgz#1ee881ff20b3d0e3a50ac4e472253757ebdb9ffe"
|
||||||
integrity sha512-a36Kvw4ToxB0XsldMKmxuULn7yJ72fyHIbXi0hg3J6pU9JXUSCG+jxMVbichmXgH0NScjeQxbNEHyeLg+wfd4Q==
|
integrity sha512-ut2srey5upZQPYfBiT0mHhSxa50Fd0mOmfKR+F8Gxx/zwZ3y3tSNUOfblLcJtqY583gjH0s/zMOU+FKjhTCuog==
|
||||||
dependencies:
|
dependencies:
|
||||||
lib0 "^0.2.31"
|
lib0 "^0.2.31"
|
||||||
lodash.debounce "^4.0.8"
|
lodash.debounce "^4.0.8"
|
||||||
|
|||||||
Reference in New Issue
Block a user