From 35c40851d9efa0f48422fec51a5d1e7d5a058642 Mon Sep 17 00:00:00 2001 From: Dan Swain Date: Wed, 15 Sep 2021 21:47:09 -0400 Subject: [PATCH] Fix wrong reference to AsyncConsumer in Introduction Change AsyncConsumer to AsyncWebsocketConsumer --- docs/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/introduction.rst b/docs/introduction.rst index aa907e8a5..5a0488233 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -166,7 +166,7 @@ asynchronous functions, you can write fully asynchronous consumers: .. code-block:: python - class PingConsumer(AsyncConsumer): + class PingConsumer(AsyncWebsocketConsumer): async def websocket_connect(self, message): await self.send({ "type": "websocket.accept",