September 2024
Intermediate to advanced
743 pages
27h 48m
English
With HTTP, the communication between client and server is initially unidirectional, that is, it goes in one direction from the client to the server: The client must first send an HTTP request to the server, which then responds with an HTTP request. On the other hand, a server cannot send data to a client on its own via HTTP. Modern web applications, however, thrive on the ability for clients to be actively notified by servers about new data, for example, in timelines on social networks, in charts for displaying stock prices, or in news tickers that update automatically.
These requirements can be implemented in several ways, which I describe in more detail in this section:
Polling
Long polling
Server-sent ...
Read now
Unlock full access