Add connect-accept into Websocket CBC example (#479)

This commit is contained in:
Andrew Godwin 2017-01-11 11:37:50 -08:00
parent b84713b20e
commit 6bfaaf23d1

View File

@ -103,7 +103,9 @@ The basic WebSocket generic consumer is used like this::
"""
Perform things on connection start
"""
pass
# Accept the connection; this is done by default if you don't override
# the connect function.
self.message.reply_channel.send({"accept": True})
def receive(self, text=None, bytes=None, **kwargs):
"""