JSON to client (#5553)

This commit is contained in:
Tom Moor
2024-05-24 08:29:00 -04:00
committed by GitHub
parent e1e8257df7
commit d51267b8bc
71 changed files with 651 additions and 378 deletions

View File

@@ -81,7 +81,7 @@ export default class WebsocketsProcessor {
if (!document) {
return;
}
const data = await presentDocument(document);
const data = await presentDocument(undefined, document);
const channels = await this.getDocumentEventChannels(event, document);
return socketio.to(channels).emit(event.name, data);
}
@@ -452,7 +452,7 @@ export default class WebsocketsProcessor {
return;
}
const data = await presentNotification(notification);
const data = await presentNotification(undefined, notification);
return socketio.to(`user-${event.userId}`).emit(event.name, data);
}