Adding real-time functionality to your Bubble app

Curious to know what’s possible with Bubble here.

Would I be able to add presence indicators in a Bubble app (by adding JS code to the header) if the real-time functionality was powered by a pub/sub messaging API from Pusher for example?

See docs: Pusher Documentation