HTTP long-polling
The HTTP long-polling transport (also simply referred as “polling”) consists of successive HTTP requests:
- long-running
GET
requests, for receiving data from the server - short-running
POST
requests, for sending data to the server
Mechanism
- Client sends a request to Server, if Server has the data it will respond right away, otherwise it will keep the connection open until it has the data
References
Web sockets
Bi-directional