Skip to content
Guilherme Souza edited this page Oct 21, 2013 · 2 revisions

How to run it

The server can be run with node index.js in the server folder

What it does

  • Match the players (described in Matching)
  • Broadcast messages (only after the player has matched with others)
  • Inform whenever a player goes disconnected (MSG_PLAYER_DISCONNECTED with data: string id)

Garantees

  • The broadcasted messages are not broadcasted back to sender
  • The messages are broadcasted in the same order for every player in the same room and in the order there were received
Clone this wiki locally