From 2b486b0ef065a654e4da9a6ea7407f56beb8d4a0 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 22 Feb 2016 14:10:24 +0000 Subject: [PATCH] Fix broken bits in docs. --- docs/asgi.rst | 2 +- docs/getting-started.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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