title: AttributeError: type object 'ChatConsumer' has no attribute 'as_asgi()
body: <pre class="lang-py prettyprint-override"><code>from django.urls import re_path
  from . import consumers
  websocket_urlpatterns = [
          re_path(r'ws/chat/(?P&lt;room_name&gt;\w+)/$',consumers.ChatConsumer.as_asgi()),]
  </code></pre>
  <p>getting error of <code>as_asgi()</code></p>