Explorar o código

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

Shun Miyazawa %!s(int64=2) %!d(string=hai) anos
pai
achega
931698aaff
Modificáronse 1 ficheiros con 1 adicións e 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);
         });