Long-polling vs websocket when expecting one-time response from server-side
问题 I have read many articles on real-time push notifications. And the resume is that websocket is generally the preferred technique as long as you are not concerned about 100% browser compatibility. And yet, one article states that Long polling - potentially when you are exchanging single call with server, and server is doing some work in background. This is exactly my case. The user presses a button which initiates some complex calculations on server-side, and as soon as the answer is ready,