title: Cannot use Redis as django channels channel layer backend
body: <p>I am trying to use django_redis's RedisChannelLayer as django channels's channel layer backend. Which results in the websocket opening and closing instantly. But it work fine with In memory channel layer.</p>
  <p>channels_redis:</p>
  <pre><code>CHANNEL_LAYERS = {
      &quot;default&quot;: {
          &quot;BACKEND&quot;: &quot;channels_redis.core.RedisChannelLayer&quot;,
          &quot;CONFIG&quot;: {
              &quot;hosts&quot;: [(&quot;127.0.0.1&quot;, 6379)],
          },
      },
  }
  </code></pre>
  <p>In Memory Channel Layer:</p>
  <pre><code>CHANNEL_LAYERS = {
      &quot;default&quot;: {
          &quot;BACKEND&quot;: &quot;channels.layers.InMemoryChannelLayer&quot;
      }
  }
  </code></pre>
  <p>Consumer:</p>
  <pre><code>class MessageConsumer(AsyncWebsocketConsumer):
      def __init__(self):
          super().__init__()
          self.channel = None
          self.group_name = None
  
      async def connect(self):
          self.channel = await self.get_channel()
          self.group_name = f&quot;group_{self.channel.id}&quot;
          await self.channel_layer.group_add(self.group_name, self.channel_name)
          await self.accept()
  </code></pre>