We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13c93e commit 941f3a2Copy full SHA for 941f3a2
src/y-socket-io/y-socket-io.js
@@ -470,9 +470,11 @@ export class YSocketIO {
470
if (msg.length === 0) continue
471
Y.applyUpdate(existDoc.ydoc, msg)
472
}
473
- for (const msg of awareness) {
474
- if (msg.length === 0) continue
475
- AwarenessProtocol.applyAwarenessUpdate(existDoc.awareness, msg, null)
+ if (existDoc.awareness) {
+ for (const msg of awareness) {
+ if (msg.length === 0) continue
476
+ AwarenessProtocol.applyAwarenessUpdate(existDoc.awareness, msg, null)
477
+ }
478
479
})
480
0 commit comments