update y-websocket to fix the awareness states issue

This commit is contained in:
Hans Pagel
2020-12-04 13:26:50 +01:00
parent 6342a757ef
commit da404c3945
3 changed files with 5 additions and 8 deletions

View File

@@ -72,9 +72,6 @@ const CollaborationCursor = Extension.create({
this.options.provider.on('status', (event: { status: string }) => {
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)
}
})