Skip to Content
Building SPAs with Django and HTML Over the Wire
book

Building SPAs with Django and HTML Over the Wire

by Andros Fenollosa
August 2022
Intermediate to advanced
264 pages
4h 27m
English
Packt Publishing
Content preview from Building SPAs with Django and HTML Over the Wire

Chapter 5: Separating Communication in Rooms

Channels allow us to broadcast, send, and receive asynchronous messages to/from all clients that belong to a group. Within a group, we cannot filter a selection of users. To solve this problem and create a division or categories, we must resort to creating new Channels and manually grouping the clients.

So far, we can communicate with a customer who is isolated in a Channel or with all the customers connected to a common Channel. Now, it is time to learn how to control groups/Channels to separate and move customers between different groups as needed. You can even assign the same customer to several groups at the same time. For example, if we are creating a Chat, it would be useful for the user to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Django 2 and Channels 2: Building Projects and Applications with Real-Time Capabilities

Practical Django 2 and Channels 2: Building Projects and Applications with Real-Time Capabilities

Federico Marani
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781803240190Supplemental Content