I pretty much don’t know anything about these two. Which one is better/more efficient and why?
Also I looked at the node.js example and noticed that they create a server for the chatroom/chat.
Does that mean I need to create a new server for every chat/chatroom or is there a better/more efficient way of doing this?
Thanks!
Socket.io is a library which utilizes node.js. Think of node.js as an javascript on the server. Socket.io provides modules for websocket servers (server-side) and websocket clients (client-side).
I do not entirely understand your question about creating a new server for every chat/chatroom. That’s entirely up to you.