Answer the question
In order to leave comments, you need to log in
How to isolate events in socket.io?
For example, there is a code
io.on('connection', function(socket){
socket.on('join', (room) => {
console.log(room, socket.id)
})
});
{ room: '12ds23sfdg234' } '/#RIbdtzB2xseyeKb8AAAA'
{ room: '12ds23sfdg234' } '/#THTZ8erZYt4RyF3kAAAB'
Answer the question
In order to leave comments, you need to log in
Well, it's all right.
The code fulfills for each connection.
Common code for all.
What to isolate?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question