mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +03:00
Add connect-accept into Websocket CBC example (#479)
This commit is contained in:
parent
b84713b20e
commit
6bfaaf23d1
|
@ -103,7 +103,9 @@ The basic WebSocket generic consumer is used like this::
|
||||||
"""
|
"""
|
||||||
Perform things on connection start
|
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):
|
def receive(self, text=None, bytes=None, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user