This is a sample of how to use Cloud Pub/Sub from Kotlin-JS, using the Node Pub/Sub libraries. It's basically just to see if I could, so please do not base your product on this! :)
This is UNOFFICIAL and EXPERIMENTAL, and not recommended at this time. Caveat emptor!
This is part of a Medium blog post, which can be found here:
https://feywind.medium.com/using-cloud-pub-sub-on-node-js-from-kotlin-js-46ad79739bbf