feat(assist): debugging

This commit is contained in:
Taha Yassine Kraiem 2023-04-06 11:05:52 +01:00
parent 8602bac472
commit 2eded0c84d

View file

@ -211,6 +211,7 @@ const findSessionSocketId = async (io, peerId) => {
};
async function sessions_agents_count(io, socket) {
debug && console.log(`----looking for rooms of peerId:${socket.peerId}`);
let c_sessions = 0, c_agents = 0;
const rooms = io.sockets.adapter.rooms;
debug && console.log("----rooms from adapter:");