title: Websocket client for ActionCable in Rails API app
body: <p>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.</p>
  
  <p>The question is: how to use ActionCable as API-only, outside of Rails' coffescript, like for Android, iOS, Angular and React client?</p>
  
  <p>I found different and useful resources but I'm still a bit confused.</p>
  
  <p>1: <a href="https://stackoverflow.com/a/40554476/6624227">ActionCable usage for Rails API</a> - <strong>it seems the best, but how can I find all JSON commands exchanged by the ActionCable framework?</strong></p>
  
  <p>2: <a href="https://stackoverflow.com/questions/39185275/consuming-rails-5-actioncable">Similar Question to the mine</a></p>
  
  <p>3: <a href="https://stackoverflow.com/questions/23036101/rails-api-angularjs-websocket-rails-gem">Rails API Websocket GEM</a> - ok, is not ActionCable, but this guy had compiled coffescript into JS and ported it into project. Not useful for Mobile development.</p>
  
  <p>If there are different solutions or better knowledges, please tell me. I need to "hack" this to turn it working.</p>
  
  <p><strong>EDIT :</strong> I found also this repo <a href="https://github.com/xtian/action-cable-js" rel="nofollow noreferrer">action-cable-js</a> but how to integrate it?</p>