Get the latest tech news
HTTP Feeds: a minimal specification for polling events over HTTP
Asynchronous event streaming and data replication with plain HTTP APIs.
A client calls the endpoint with the last known event id as lastEventId query parameter in an endless loop. If the response is an empty array, the client reached the end of the stream and waits some time to make another call to get events that occured in the meantime. The server then sends the response (with the new events or an empty array) and the client can immediately perform another call.
Or read this on Hacker News