I need to use Websocket in my Rails API (only) app. There's no any server-side rendering for pages. The app is a JSON-only backend for Angular and Xamarin. I saw that a lot of tutorials use coffescript as ActionCable client inside Rails, but it's not my case.
The question is: how to use ActionCable as API-only, outside of Rails' coffescript, like for Android, iOS, Angular and React client?
I found different and useful resources but I'm still a bit confused.
1: ActionCable usage for Rails API - it seems the best, but how can I find all JSON commands exchanged by the ActionCable framework?
2: Similar Question to the mine
3: Rails API Websocket GEM - ok, is not ActionCable, but this guy had compiled coffescript into JS and ported it into project. Not useful for Mobile development.
If there are different solutions or better knowledges, please tell me. I need to "hack" this to turn it working.
EDIT : I found also this repo action-cable-js but how to integrate it?