mirror of
https://github.com/django/daphne.git
synced 2025-04-21 17:22:03 +03:00
Update ASGI spec to make websocket.receive/disconnect include path
This enables much easier routing for applications, and is not a lot more overhead, all things considered.
This commit is contained in:
parent
2732a66e81
commit
a914cfdcb6
|
@ -654,6 +654,8 @@ Keys:
|
|||
* ``reply_channel``: Channel name for sending data, in
|
||||
format ``websocket.send.?``
|
||||
|
||||
* ``path``: Path sent during ``connect``, sent to make routing easier for apps.
|
||||
|
||||
* ``bytes``: Byte string of frame content, if it was bytes mode, or ``None``.
|
||||
|
||||
* ``text``: Unicode string of frame content, if it was text mode, or ``None``.
|
||||
|
@ -679,6 +681,8 @@ Keys:
|
|||
format ``websocket.send.?``. Cannot be used to send at this point; provided
|
||||
as a way to identify the connection only.
|
||||
|
||||
* ``path``: Path sent during ``connect``, sent to make routing easier for apps.
|
||||
|
||||
* ``order``: Order of the disconnection relative to the incoming frames'
|
||||
``order`` values in ``websocket.receive``.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user