From 88d3379e3189d04065a3030375976d0d42111a0d Mon Sep 17 00:00:00 2001 From: George Brocklehurst Date: Sat, 6 Feb 2016 18:26:41 -0500 Subject: [PATCH] Docs: reply_channel is a property of message Update an example where `reply_channel` was a global, and contained the channel name rather than a channel objects. --- docs/concepts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts.rst b/docs/concepts.rst index b523d49..5066cb5 100644 --- a/docs/concepts.rst +++ b/docs/concepts.rst @@ -113,7 +113,7 @@ message. Suddenly, a view is merely another example of a consumer:: # Run view django_response = view(django_request) # Encode the response into JSON-compat format - Channel(reply_channel).send(django_response.encode()) + message.reply_channel.send(django_response.encode()) In fact, this is how Channels works. The interface servers transform connections from the outside world (HTTP, WebSockets, etc.) into messages on channels,