mirror of
https://github.com/django/daphne.git
synced 2025-11-01 08:17:25 +03:00
* Ignore Emacs backups.
* Do not override default websocket.connect handler.
Channels specification 1.0 requires that websocket.connect handler
returns meaningful message with {'accept': True} at least.
* Add rabbitmq channel layer settings.
* Add benchmark requirements in separate file.
* Add RabbitMQ infrastructure part.
* Adapt benchmark README for new docker layout.
* Adapt fabric deploy for new settings module.
7 lines
173 B
Python
7 lines
173 B
Python
from channels.sessions import enforce_ordering
|
|
|
|
|
|
def ws_message(message):
|
|
"Echoes messages back to the client"
|
|
message.reply_channel.send({'text': message['text']})
|