Ejemplo n.º 1
0
 public function __destruct()
 {
     if ($this->ch) {
         $this->ch->close();
     }
     if ($this->conn->isConnected()) {
         $this->conn->close();
     }
 }
Ejemplo n.º 2
0
 /**
  * @param string $id
  * @return Channel
  */
 protected function doCreateChannel($id)
 {
     $channel = new Channel($this->connection, $id);
     if ($this->panel) {
         $channel->injectPanel($this->panel);
     }
     return $channel;
 }