feat: added event for online page editors (#8130)
This commit is contained in:
parent
82fac6405e
commit
dbb0cdef85
|
|
@ -87,6 +87,11 @@ function main() {
|
|||
}
|
||||
});
|
||||
|
||||
io.of(PAGE_EDIT_NAMESPACE).adapter.on("join-room", (room, id) => {
|
||||
log.debug(`ns:${PAGE_EDIT_NAMESPACE}# socket ${id} joined the room ${room}`)
|
||||
sendCurrentUsers(io.of(PAGE_EDIT_NAMESPACE), room, PAGE_ROOM_PREFIX);
|
||||
});
|
||||
|
||||
watchMongoDB(io)
|
||||
.catch((error) => log.error("Error watching MongoDB", error))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user