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:
Andrew Godwin 2016-03-20 12:27:00 -03:00
parent 2732a66e81
commit a914cfdcb6

View File

@ -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``.