We are in the process of creating a Rails application that uses a 3rd party websocket API (not sure what language the 3rd party uses). I understand the concept of Websockets and it's purpose and would be a perfect fit for our high transactional application. Our application uses a Rails API backend and a React front end.
To give an idea of our application, we basically track 15k+ different accounts that are always changing with multiple transactions per second that we show in close to real time (polled once per second) to the respective user who is logged and has access to see the ledger and balance. Currently we use normal REST api to pull ledger history (which is being polled).
Unfortunately most websocket/ActionCable examples that I've googled are closed looped chat programs (open 2 browsers -- hit same web page). I'm unable to find anything that would lead me in the right direction for that we're trying to do (see below).
Anyway, our ideal situation is we would like to continue to use our Rails API we developed and switch from polled API calls to websockets for our ledgers. We would like to keep track of the data from the 3rd party (and transforming it for our clients) before sending it to our clients (eventually using our own future websocket implementation). So, is this even possible with Rails API to connect to a 3rd party websocket api on the backend?