If you are interested how to implement this in Python, check out this Gist:
https://gist.github.com/kissgyorgy/beccba1291de962702ea9c237...It's really simple. I used this snippet for a real-time application which can react to any kind of change in the database instantly.