mirror of
https://github.com/django/daphne.git
synced 2025-07-13 09:22:17 +03:00
Fix echo endpoint in testproject
This commit is contained in:
parent
e0341e65cd
commit
80a9019cb2
|
@ -9,4 +9,6 @@ def ws_connect(message):
|
||||||
#@enforce_ordering(slight=True)
|
#@enforce_ordering(slight=True)
|
||||||
def ws_message(message):
|
def ws_message(message):
|
||||||
"Echoes messages back to the client"
|
"Echoes messages back to the client"
|
||||||
message.reply_channel.send(message.content)
|
message.reply_channel.send({
|
||||||
|
"text": message['text'],
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user