I am creating appliction which recives HTTP POST request, saves it to hash and moves to Redis and it works fine so far. Now I would like to push these datas to client IN REAL TIME. I though about using WebSocket and after generating WebSocket (rails g websocket_rails:install) meet with the first issue. I cant to post requestes anymore.
org.apache.http.conn.HttpHostConnectException: Connect to
localhost:3000 [localhost/127.0.0.1] failed: Connection refused
- What should I do then?
- Using WebSocket is proper way?
- Can I first receive POST request and then create a channel to pushing datas to client?