From 609adfca8dbd9776974edec79aa839587d290d73 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 6 Apr 2016 08:11:59 -0700 Subject: [PATCH] Fix example with custom channel --- docs/getting-started.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 8eb7561..b71dc35 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -569,7 +569,7 @@ have a ChatMessage model with ``message`` and ``room`` fields:: ) # Broadcast to listening sockets Group("chat-%s" % room).send({ - "content": message.content['message'], + "text": message.content['message'], }) # Connected to websocket.connect @@ -587,7 +587,7 @@ have a ChatMessage model with ``message`` and ``room`` fields:: # Stick the message onto the processing queue Channel("chat-messages").send({ "room": channel_session['room'], - "message": content, + "message": message['text'], }) # Connected to websocket.disconnect