/**
  * Lance la synchronisation
  */
 public function send()
 {
     $msg = array('idConnection' => $this->buzzer->getConnectionId(), 'msgType' => 'synchro', 'error' => 0, 'errorMsg' => '', 'timeSend' => microtime(true));
     $this->buzzer->send(json_encode($msg));
 }
Example #2
0
 /**
  * @param Buzzer $buzzer
  * @return string
  */
 public function msgDesinscription(Buzzer $buzzer)
 {
     return json_encode(array('idConnection' => $buzzer->getConnectionId(), 'msgType' => 'desInscriptFromSalon', 'error' => 0, 'errorMsg' => '', 'idSalon' => $this->getId(), 'idBuzzer' => $buzzer->getId()));
 }