I’ve not looked at Babble, but I’m assuming it uses the same mechanism the rest of Discourse uses:
https://github.com/SamSaffron/message_bus
It’s a process or subscribing to an endpoint on the front-end and pushing updated data to said endpoint from the back-end. You can see this process if you do a search for MessageBus on the Discourse repo.