Im starting out with node.js and socket.io.
I have 2 questions: - When a room is empty, is it automatically destoyed unbtil recreated? and if it is not destroyed automaticaly, does it take up much ressources on the server?
on the server side. is it the io server or the connected socket that should transmit the data?
socket.emit('doSomething'); or io.emit('doSomething');