title: How to connect to a websocket API with Rails?
body: <p>I'm trying to connect to a websocket API with Rails 5.1.4 but I don't really know where to start.</p>
  
  <p>I read some tutorials and discovered that Action Cable can suit my need but all the examples are about internal use of websocket (chat, notifications etc) and not to connect to an external API.</p>
  
  <p>My goal is to establish the connection / subscribe to the service and receive the feed in real time. If I can do that, I would be able to continue my project.</p>
  
  <p>I am more looking for a general methodology that the detailed code for my need but I'm trying to connect to this API: <a href="https://docs.gdax.com/?ruby#websocket-feed" rel="noreferrer">https://docs.gdax.com/?ruby#websocket-feed</a></p>