Parcourir la source

Emit to the client that opens the page with the target id

Shun Miyazawa il y a 1 an
Parent
commit
931698aaff
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apps/app/src/server/service/socket-io.js

+ 1 - 1
apps/app/src/server/service/socket-io.js

@@ -179,7 +179,7 @@ class SocketIoService {
 
         yjsConnectionManager.ysocketio.on('awareness-update', async(update) => {
           const awarenessStateSize = update.awareness.states.size;
-          this.io
+          this.getDefaultSocket()
             .in(getRoomNameWithId(RoomPrefix.PAGE, pageId))
             .emit(SocketEventName.YjsAwarenessStateUpdated, awarenessStateSize);
         });