OpenSource For You

Polling, long polling, streaming, and Websocket

-

In polling, the client polls the server at regular intervals asking for updates; the server replies with any updated content if available. In long polling, the client makes a connection to the server, which is kept alive until the server has an update. After the update is sent to the client, the connection is re-establishe­d and held open until another update is obtained from the server.

In streaming, the client creates a connection to the server and this connection is never ended; updates are sent to the FlLenWV LndefinLWe­ly. 1ow wLWK :eb6oFkeWV, WKe FlLenW PDkeV D new connection with the ws protocol; the server registers the client and then pushes data to it when an update is available.

Newspapers in English

Newspapers from India