File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ export class SocketIOProvider extends Observable {
185
185
186
186
this . initSystemListeners ( )
187
187
188
-
189
188
if ( autoConnect ) this . connect ( )
190
189
}
191
190
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import { createSubscriber } from '../subscriber.js'
25
25
*
26
26
* @typedef {{
27
27
* ydoc: Y.Doc;
28
- * awareness: AwarenessProtocol.Awareness;
28
+ * awareness: AwarenessProtocol.Awareness | null ;
29
29
* redisLastId: string;
30
30
* storeReferences: any[] | null;
31
31
* }} RedisDoc
@@ -295,7 +295,7 @@ export class YSocketIO {
295
295
) . catch ( console . error )
296
296
}
297
297
)
298
- if ( this . configuration . enableAwareness && doc . awareness . states . size > 0 ) {
298
+ if ( this . configuration . enableAwareness && doc . awareness && doc . awareness . states . size > 0 ) {
299
299
socket . emit (
300
300
'awareness-update' ,
301
301
AwarenessProtocol . encodeAwarenessUpdate (
You can’t perform that action at this time.
0 commit comments