Summary
We could consider this chapter as a consummation of all the skills acquired throughout the book. Not only are we able to incorporate a WebSockets server into Django, through channels; we now also have techniques to create a real-time, single-page application using Python. We now have a deep knowledge that matches the results we can achieve with other similar projects, such as LiveView in Phoenix (the most popular framework in the Elixir ecosystem), StimulusReflex, Turbo, Action Cable, or Hotwire in Ruby on Rails.
If we are looking to abstract part of the process, there are some frameworks within Django that can be useful, such as Django Sockpuppet or Django Reactor. Unfortunately, neither of them is receiving updates, although it is a great idea to find out how they are constructed in order to further expand our knowledge.
Although the backend is covered, it is still cumbersome to work with the frontend. Events have to be redeclared on every draw, and there are tasks...