Merge pull request #845 from mineo/patch-1

onConnect: Do deny -> To deny
This commit is contained in:
Tobias Oberstein
2017-06-06 12:00:36 +02:00
committed by GitHub

View File

@@ -413,7 +413,7 @@ class IWebSocketChannel(object):
which case the connection is accepted with no specific WebSocket subprotocol) or
an instance of :class:`autobahn.websocket.types.ConnectionAccept`.
When the callback is fired on a WebSocket client, this method must return ``None``.
Do deny a connection, raise an Exception.
To deny a connection, raise an Exception.
You can also return a Deferred/Future that resolves/rejects to the above.
"""