Open jerryschen31 opened 1 year ago
Websockets Websockets introduced a new standard for modern real-time, bi-directional communication on the web. Websocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. WebSockets keeps a unique connection open while eliminating latency problems that arise with Long Polling. WebSockets generally do not use XMLHttpRequest, and as such, headers are not sent every-time we need to get more information from the server. This, in turn, reduces the expensive data loads being sent to the server.
HTTP Long Polling https://www.pubnub.com/blog/http-long-polling/ ByteByteGo HTTP https://www.youtube.com/watch?v=a-sBfyiXysI
https://www.youtube.com/watch?v=ZBM28ZPlin8