diff --git a/assist/servers/websocket.js b/assist/servers/websocket.js index f1f21edcd..7f56a4e5c 100644 --- a/assist/servers/websocket.js +++ b/assist/servers/websocket.js @@ -271,7 +271,9 @@ module.exports = { let {projectKey} = extractPeerId(roomId); if (projectKey === connProjectKey) { const connected_sockets = await io.in(roomId).fetchSockets(); + debug && console.log(`connected_sockets:${JSON.stringify(connected_sockets)}`); for (let item of connected_sockets) { + debug && console.log(`conn.tabId: ${item.tabId}`); if (item.tabId === connTabId) { debug && console.log(`session already connected, refusing new connexion`); io.to(socket.id).emit(EVENTS_DEFINITION.emit.SESSION_ALREADY_CONNECTED);