From a914cfdcb6fee935589aae4ac30c46600f2d9158 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Mar 2016 12:27:00 -0300 Subject: [PATCH] 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. --- docs/asgi.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/asgi.rst b/docs/asgi.rst index 6916471..9590dbb 100644 --- a/docs/asgi.rst +++ b/docs/asgi.rst @@ -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``.