File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,10 @@ export class YSocketIO {
153
153
this . namespaceStreamMap . set ( namespace , stream )
154
154
this . streamNamespaceMap . set ( stream , namespace )
155
155
156
+ this . initSyncListeners ( socket )
157
+ this . initAwarenessListeners ( socket )
158
+ this . initSocketListeners ( socket )
159
+
156
160
const doc = await this . client . getDoc ( namespace , 'index' )
157
161
158
162
if (
@@ -162,12 +166,6 @@ export class YSocketIO {
162
166
// need to renew subscription id and make sure that we catch the latest content.
163
167
this . subscriber . ensureSubId ( stream , doc . redisLastId )
164
168
}
165
-
166
- this . initSyncListeners ( socket )
167
- this . initAwarenessListeners ( socket )
168
-
169
- this . initSocketListeners ( socket )
170
-
171
169
this . startSynchronization ( socket , doc )
172
170
} )
173
171
You can’t perform that action at this time.
0 commit comments