What’s Next

Being able to communicate with the server via polling is nice, but we still have a delay between when the change is made and when the server is polled. We could have a more direct update if the server were able to update the client when a change happens. A way to do that on the web is using the WebSocket protocol, and Rails provides ActionCable as a library for making WebSocket connections and broadcasting updates to clients. We’ll take a look at both ActionCable and WebSockets in the next chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.167.176