Пример #1
0
 /**
  * @param ConnectedClientInterface $client
  * @param array $packet
  */
 protected function sendData(ConnectedClientInterface $client, array $packet)
 {
     $client->getConnection()->send(json_encode($packet));
 }
Пример #2
0
 protected function makeUserDisconnectedMessage(ConnectedClientInterface $client, $timestamp)
 {
     return vsprintf('%s ha salido de la sala', array($client->getName()));
 }