diff --git a/docs/asgi.rst b/docs/asgi.rst index fa92e31..c68611e 100644 --- a/docs/asgi.rst +++ b/docs/asgi.rst @@ -286,7 +286,7 @@ A *channel layer* should provide an object with these attributes * ``extensions``, a list of unicode string names indicating which extensions this layer provides, or empty if it supports none. - The only valid extension names are ``groups``, ``flush`` and ``statistics`. + The only valid extension names are ``groups``, ``flush`` and ``statistics``. A channel layer implementing the ``groups`` extension must also provide: diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 833b549..029666e 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -122,13 +122,13 @@ handler:: def ws_disconnect(message): Group("chat").discard(message.reply_channel) +.. _websocket-example: + Now, that's taken care of adding and removing WebSocket send channels for the ``chat`` group; all we need to do now is take care of message sending. For now, we're not going to store a history of messages or anything and just replay any message sent in to all connected clients. Here's all the code:: -.. _websocket-example: - # In consumers.py from channels import Group