mirror of
https://github.com/django/daphne.git
synced 2025-07-30 00:49:44 +03:00
A couple more spec tweaks
This commit is contained in:
parent
1f2538f5b8
commit
526ad65e73
|
@ -205,6 +205,8 @@ network based on attributes in the message (in this case, a telephone
|
|||
number).
|
||||
|
||||
|
||||
.. _asgi_extensions:
|
||||
|
||||
Extensions
|
||||
----------
|
||||
|
||||
|
@ -338,7 +340,7 @@ A *channel layer* must provide an object with these attributes
|
|||
and returns a new valid channel name that does not already exist, by
|
||||
adding a unicode string after the ``!`` or ``?`` character in ``pattern``,
|
||||
and checking for existence of that name in the channel layer. The ``pattern``
|
||||
MUST end with ``!`` or ``?`` or this function must error. If the character
|
||||
must end with ``!`` or ``?`` or this function must error. If the character
|
||||
is ``!``, making it a process-specific channel, ``new_channel`` must be
|
||||
called on the same channel layer that intends to read the channel with
|
||||
``receive``; any other channel layer instance may not receive
|
||||
|
@ -351,9 +353,8 @@ A *channel layer* must provide an object with these attributes
|
|||
because the destination channel is over capacity.
|
||||
|
||||
* ``extensions``, a list of unicode string names indicating which
|
||||
extensions this layer provides, or empty if it supports none.
|
||||
The names defined in this document are ``groups``, ``flush`` and
|
||||
``statistics``.
|
||||
extensions this layer provides, or an empty list if it supports none.
|
||||
The possible extensions can be seen in :ref:`asgi_extensions`.
|
||||
|
||||
A channel layer implementing the ``groups`` extension must also provide:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user