library/Rediska/PubSub/Connections.php
public function addChannel($channel)
    {
        $connection = $this->getConnectionByChannelName($channel);

        if (!array_key_exists($connection->getAlias(), $this->_channelsByConnections)) {
            $this->_channelsByConnections[$connection->getAlias()] = array();
            $this->_connections[$connection->getAlias()] = $connection;
        }
        if (!in_array($channel, $this->_channelsByConnections[$connection->getAlias()])) {
            $this->_channelsByConnections[$connection->getAlias()][] = $channel;
        }

        return $connection;
    }
public function addChannel($channel)
    {
        $connection = $this->getConnectionByChannelName($channel);

        if (!array_key_exists($connection->getAlias(), $this->_channelsByConnections)) {
            $this->_channelsByConnections[$connection->getAlias()] = array();
            $this->_connections[$connection->getAlias()] = $connection;
        }
        if (!in_array($channel, $this->_channelsByConnections[$connection->getAlias()])) {
            $this->_channelsByConnections[$connection->getAlias()][] = $channel;
        }

        return $connection;
    }
Add channel

@param string $channel
@return Rediska_Connection