Messaging in app options

I built a smart device and am now building an app to interface with it. Sometimes the device will do something that the app needs to know about and sometimes the user will use the app to tell the device to do something. This will require a pretty standard messaging mechanism so that both the app and device can publish messages and listen for published messages in real-time.

I am on Google Cloud, so I considered PubSub, but flutterflow doesn't appear to support PubSub. Firebase Realtime Database could fit the bill, but flutterflow doesn't appear to support that either. While there is support for Firestore, It doesn't seem to support listening to a messages collection.

Messaging would seem to be a pretty standard requirement, so I'm hoping I'm just missing something and this is possible in flutterflow. I would prefer a native flutterflow component, but I'm open to custom code if necessary.

I posted here about how I got realtime database to work using API calls, but not listening: https://community.flutterflow.io/database-and-apis/post/realtime-database-with-flutterflow-3jsbkRpevBMYleX

I just need any way to publish and receive messages in realtime between my python smart device and my flutterflow app