Explorar el Código

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

Shun Miyazawa hace 2 años
padre
commit
931698aaff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
         });