diff --git a/docs/introduction.rst b/docs/introduction.rst index aa907e8a..5a048823 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",