July 2019
Intermediate to advanced
310 pages
7h 26m
English
In the previous chapter, you learned how to interact with servers by fetching JSON data from an HTTP API. This was an important step in creating a real-world application that can use data from remote sources. You also discovered the importance of safely converting JSON data into static types via JSON decoders.
Front-end applications are becoming increasingly real-time as well. Chat apps, stock tickers, and social media timelines depend on never-ending streams of data to stay current. Polling mechanisms and HTTP APIs cannot adequately satisfy these needs, so you need a different tool known as the WebSocket.
In this chapter, you will update the Picshare application to accept a stream of photos in real time ...
Read now
Unlock full access