1.

What is long polling?

Answer»

Long POLLING is a technique for maintaining a persistent CONNECTION between the client and the server. It is used to push data from the server to the client. The connection is maintained after a REQUEST for NEW information has been made by the client to the server, until the data becomes available on the server and it is ready to send it to the client. The connection is closed when the server has sent the data to the client or a connection TIMEOUT occurs. The flow of long polling is:

  1. The client sends a request for information to the server.
  2. The server holds the client’s connection until new data is available.
  3. The server responds to the client as new information becomes available.


Discussion

No Comment Found