Group ref on keepalive

This commit is contained in:
Faris Chebib 2015-09-10 12:04:52 -06:00
parent 275bfdf1e5
commit d4de42d3b2

View File

@ -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)