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 {
185185
186186 this . initSystemListeners ( )
187187
188-
189188 if ( autoConnect ) this . connect ( )
190189 }
191190
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ process.on('SIGINT', function () {
4444 *
4545 * @typedef {{
4646 * ydoc: Y.Doc;
47- * awareness: AwarenessProtocol.Awareness;
47+ * awareness: AwarenessProtocol.Awareness | null ;
4848 * redisLastId: string;
4949 * storeReferences: any[] | null;
5050 * }} RedisDoc
@@ -412,7 +412,7 @@ export class YSocketIO {
412412 . catch ( console . error )
413413 }
414414 )
415- if ( this . configuration . enableAwareness && doc . awareness . states . size > 0 ) {
415+ if ( this . configuration . enableAwareness && doc . awareness && doc . awareness . states . size > 0 ) {
416416 socket . emit (
417417 'awareness-update' ,
418418 AwarenessProtocol . encodeAwarenessUpdate (
You can’t perform that action at this time.
0 commit comments