File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 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 @@ -44,7 +44,7 @@ process.on('SIGINT', function () {
44
44
*
45
45
* @typedef {{
46
46
* ydoc: Y.Doc;
47
- * awareness: AwarenessProtocol.Awareness;
47
+ * awareness: AwarenessProtocol.Awareness | null ;
48
48
* redisLastId: string;
49
49
* storeReferences: any[] | null;
50
50
* }} RedisDoc
@@ -412,7 +412,7 @@ export class YSocketIO {
412
412
. catch ( console . error )
413
413
}
414
414
)
415
- if ( this . configuration . enableAwareness && doc . awareness . states . size > 0 ) {
415
+ if ( this . configuration . enableAwareness && doc . awareness && doc . awareness . states . size > 0 ) {
416
416
socket . emit (
417
417
'awareness-update' ,
418
418
AwarenessProtocol . encodeAwarenessUpdate (
You can’t perform that action at this time.
0 commit comments