Where do I find more information on how to use IPFS for real-time applications?

Hello,

I decided to tinker around with building some live drawing collaboration thing as a desktop C++ application as my hobby. With as low latency as possible in average case.

I found this link using pubsub and js-ipfs, but only using pubsub is shown, and it is not explained how that works and what kind of latencies are involved. Which is fine, it’s just a short demo thing. But that’s why I’m asking here. (Not to mention it’s obviously in JavaScript).

How can I have two or more clients connected together, synchronizing their state as quickly as that is possible? Does pubsub help me somehow?

Can I find material to read up on the way pubsub is implemented (which doesn’t take a day to read, ideally)?