Reputation: 1093
I am currently developing a mutil-player game with Django. You can consider the game as a chat room app. Each user can create room of maximum 8 players, wait for other users to join in and then start to play.
For this purpose, I googled around and found two possible solutions:
I do not know which solution is more suitable in my case. Besides, I guess I need dynamically create websocket for each chat room, right?
Upvotes: 0
Views: 972
Reputation: 75
I think its best you use node.js
with socket.io
. Its really simple and fits perfect for your situation. You will have to associate each client uniquely, which socket.io
does for you by generating a unique client id which you can check further to do what you want.
Here is a good example to get you started : http://udidu.blogspot.com/2012/11/chat-evolution-nodejs-and-socketio.html
Upvotes: 0