From 6fd83f04f8b350dfaa880efc969649fecf44d5bd Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 16 Jul 2016 23:04:32 -0700 Subject: [PATCH] Add group_channels --- docs/asgi.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/asgi.rst b/docs/asgi.rst index 85c7180..13f9b7b 100644 --- a/docs/asgi.rst +++ b/docs/asgi.rst @@ -348,6 +348,11 @@ A channel layer implementing the ``groups`` extension must also provide: * ``group_discard(group, channel)``, a callable that removes the ``channel`` from the ``group`` if it is in it, and does nothing otherwise. +* ``group_channels(group)``, a callable that returns an iterable which yields + all of the group's member channel names. The return value should be serializable + with regards to local adds and discards, but best-effort with regards to + adds and discards on other nodes. + * ``send_group(group, message)``, a callable that takes two positional arguments; the group to send to, as a unicode string, and the message to send, as a serializable ``dict``. It may raise MessageTooLarge but cannot