From 275bfdf1e50954eef6d3349b1ecf6880c278d5b8 Mon Sep 17 00:00:00 2001 From: Faris Chebib Date: Thu, 10 Sep 2015 12:04:01 -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 6ed982e..5d210d9 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -105,6 +105,8 @@ so we can hook that up to re-add the channel (it's safe to add the channel to a group it's already in - similarly, it's safe to discard a channel from a group it's not in):: + from channels import Group + # Connected to websocket.keepalive def ws_keepalive(message): Group("chat").add(message.reply_channel)