Up until few days ago, I didn't know anything nor showed an interest in JS Framewroks. But when I took a look at EmberJS, my only response was "Wow.. Everything is easy now..". xD
Anyway, what I'm thinking about is making the list of rooms where players play by EmberJS. Automatically updating the DOM without the need for loops or anything is just what I needed for this. Also, I'm thinking about using EmberJS for my in-game events, like drawing, summoning..etc.
EXAMPLE:
1 - Player "A" hosts a game.
2 - Socket.io sends some info.
3 - EmberJS updates the rooms list immediately.
4 - Player "B" clicks on the room of Player "A"
5 - Player "A" gets a list of people who clicked on the rooms. (i.e. a list of players to choose from).
6 - Player "A" chooses Player "B".
7 - They both get in a room in which they play.
8 - Player "A" plays a card.
9 - Changes must be streamed to Player "B" at the same time but in the right position. (like.. the card appears on opponent's field).
The only issue is, would that be possible via EmberJS AND Socket.io? Won't that make a lot of load on the server? It seems like a lot of work for simple steps..
Thanks.