Thanks for your reply.
Sorry that I only have a live application and its bridging logic is coupled to other parts at the moment (code in this blog is extracted from that application).
I plan to refactor this bridging layer, abstract it for more common usage, and build a simple demo app for it.
I haven’t got the time to finish it yet but it should be ready soon.
Also, I am currently dealing with this bridge on Android so there would be an Android version as well.
Cheers