title: chat socket (web socket)is closing unexpectedly (django-channels)?
body: <p><a href="https://i.stack.imgur.com/9Lghc.png" rel="nofollow noreferrer">
  console image</a></p>
  
  <p>i have gone through as it mentioned in the docs(channels) it worked fine until i pasted the code of channel_layers in settings.py</p>
  
  <p>i installed all the specifications mentioned in channel_layers</p>
  
  <pre><code>ASGI_APPLICATION = 'mysite.routing.application'
  CHANNEL_LAYERS = {
      'default': {
          'BACKEND': 'channels_redis.core.RedisChannelLayer',
          'CONFIG': {
              "hosts": [('127.0.0.1', 6379)],
          },
      },
  }
  </code></pre>
  
  <p>why is my chat_server closing unexpectedly</p>