jerryschen31 / learn

Scratch repo used for learning stuff
GNU General Public License v3.0
0 stars 0 forks source link

2023-02-03 learn basic web client-server concepts #16

Open jerryschen31 opened 1 year ago

jerryschen31 commented 1 year ago

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

jerryschen31 commented 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.