title: TypeError: __call__() missing 1 required positional argument: 'send' Django
body: <p><em><strong>When I run the project through the gunicorn (command: gunicorn --bind :8000 myproject.asgi:application), I get this error.</strong></em></p>
  <p><strong>Error</strong></p>
  <pre><code>Traceback (most recent call last):
    File &quot;/venv/lib/python3.8/site-packages/gunicorn/workers/sync.py&quot;, line 136, in handle
      self.handle_request(listener, req, client, addr)
    File &quot;/venv/lib/python3.8/site-packages/gunicorn/workers/sync.py&quot;, line 179, in handle_request
      respiter = self.wsgi(environ, resp.start_response)
  TypeError: __call__() missing 1 required positional argument: 'send'
  </code></pre>
  <p><strong>asgi.py</strong></p>
  <pre><code>import os
  from django.core.asgi import get_asgi_application
  
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings.base')
  django_asgi_app = get_asgi_application()
  
  from channels.auth import AuthMiddlewareStack
  from channels.routing import ProtocolTypeRouter, URLRouter
  
  from channels.security.websocket import AllowedHostsOriginValidator
  from chats import routing
  
  application = ProtocolTypeRouter({
      &quot;http&quot;: django_asgi_app,
      &quot;websocket&quot;: AllowedHostsOriginValidator(
          AuthMiddlewareStack(
              URLRouter(
                  routing.websocket_urlpatterns
              )
          )
      ),
  })
  </code></pre>
  <p><strong>chats.routing.py</strong></p>
  <pre><code>from django.urls import re_path
  
  from . import consumers
  
  websocket_urlpatterns = [
      re_path(r'ws/messages/(?P&lt;username&gt;[-:\w]+)/$', consumers.ChatConsumer.as_asgi()),
  ]
  
  </code></pre>