title: Waiting for player input using Node JS
body: <p>I have created a multiplayer poker game for Facebook using HTML5 (client) and Node (server). </p>
  
  <p>I am in the process of writing the server code to allow the player to call, raise, fold, etc. The server sends a message to the HTML5 client requesting the particular player call, raise, etc, but the nature of Javascript is that its non-blocking. I need to make Node wait for the player repsonse before moving on to the next player at the table. </p>
  
  <p>I have had a look at setTimeout, promises, anonymous function and I'm completely lost.</p>