From b81bbc662ceab12ef8d7f9788b98cbdfde0c2f02 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 4 Jul 2017 10:27:55 -0700 Subject: [PATCH] Update getting started example one more time. --- 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 f05e0c9..84cc9d8 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -408,12 +408,12 @@ name in the path of your WebSocket request and a query string with your username # Connected to websocket.receive @channel_session def ws_message(message, room_name): - Group("chat-%s" % room_name).send( + Group("chat-%s" % room_name).send({ "text": json.dumps({ "text": message["text"], "username": message.channel_session["username"], }), - ) + }) # Connected to websocket.disconnect @channel_session