Javascript – Socket.IO leave-room event fires multiple times
The leave-room event fires multiple times. First - 1 time, then - 2 times, then - 3 times, and so on. The same entries are displayed in the console: "user left room A" Server: io.on("connection", (socket) => { console.log('-----') io.sockets.adapter.on("leave-room",…