How can i use the hotwire in react and rails applications seperated repository

I need two separated repository , one of them can be react/vue/ etc. Second one is ruby.

Sending html with websocket from ruby then want to see on client app

I didn’t find any kind of example.