First i'm a node.js begginer. I have a chat app which i created with socket.io
the concept is i make a single unique room after 2 users are paired. but want to know if is it necessary for me to delete the room after the 2 members leave or i just let it.
I don't even know if the rooms are taking storage and how much..
some one help me understand please.
CodePudding user response:
Rooms are automatically created and deleted as users join and leave.
As for storage, socket.io doesn't use any storage during runtime, just memory. A single user or room shouldn't use any significant amount of memory.