From d4de42d3b26212f25209c302e0679df860292316 Mon Sep 17 00:00:00 2001 From: Faris Chebib Date: Thu, 10 Sep 2015 12:04:52 -0600 Subject: [PATCH] Group ref on keepalive --- docs/getting-started.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 5d210d9..3d4c112 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -71,6 +71,8 @@ do any time. Let's try some WebSockets, and make a basic chat server! Delete that consumer and its routing - we'll want the normal Django view layer to serve HTTP requests from now on - and make this WebSocket consumer instead:: + from channels import Group + def ws_add(message): Group("chat").add(message.reply_channel)