Esempio n. 1
0
 /**
  * @param string $event
  */
 public function removeAllListeners($event = null)
 {
     if ($event !== null) {
         if (isset($this->listeners[$event])) {
             unset($this->listeners[$event]);
             $this->client->getWsClient()->removeAllListeners($event);
         }
     } else {
         foreach ($this->listeners as $event => $listeners) {
             $this->client->getWsClient()->removeAllListeners($event);
         }
         $this->listeners = [];
     }
 }
Esempio n. 2
0
 /**
  * @return Sounds
  */
 public function sounds()
 {
     return $this->ariClient->sounds();
 }