Long Polling
-
WebSockets vs Long PollingWeb/Protocol 2020. 2. 23. 22:21
1. Overview Sometimes we need information from our servers as soon as it’s available. The usual AJAX request/response we’re all used to doesn’t keep the connection open for this sort of use case. Instead, we need a push-based method like WebSockets, Long Polling, Server-sent events (SSE) and more recently HTTP2 push. In this article, we compare two methods: WebSockets and Long Polling. 2. Long P..