Allow accept to be False

This commit is contained in:
Andrew Godwin 2017-03-27 09:54:13 -07:00
parent 0f0c74daaa
commit cf788a3d7d

View File

@ -356,6 +356,7 @@ message:
* If ``bytes`` or ``text`` is present, accept the connection and send the data.
* If ``accept`` is ``True``, accept the connection and do nothing else.
* If ``accept`` is ``False``, reject the connection (with close code 1000) and do nothing else.
* If ``close`` is ``True`` or a positive integer, reject the connection. If
``bytes`` or ``text`` is also set, it should accept the connection, send the
frame, then immediately close the connection.