server/index.js
// this is the controller specifically for DAB
this is the controller specifically for DAB
this is the controller specifically for DAB
function switchStatusDAB(statusSnap, sessionSnap) {
  const status = statusSnap.val();
  if (status === "playing") {
    playingDAB(sessionSnap);
  } else if (status === "guessing") {
    guessingDAB(sessionSnap);
  } else if (status === "finished") {
    finished(sessionSnap);
    sessionSnap.ref.off();
  }
}
function switchStatusDAB ( statusSnap , sessionSnap ) { const status = statusSnap . val ( ) ; if ( status === "playing" ) { playingDAB ( sessionSnap ) ; } else if ( status === "guessing" ) { guessingDAB ( sessionSnap ) ; } else if ( status === "finished" ) { finished ( sessionSnap ) ; sessionSnap . ref . off ( ) ; } }
this is the controller specifically for DAB
this is the controller specifically for DAB