Przeglądaj źródła

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

Shun Miyazawa 2 lat temu
rodzic
commit
931698aaff
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
         });