1 What is WebSocket?WebSocket was born to meet the growing demand for real-time communication based on the Web. It solves the problem that the browser must poll for a long time when the client initiates multiple HTTP requests to the server resources. It implements multiplexing and is a full-duplex, bidirectional, single-socket connection. Under the WebSocket protocol, the server and the client can send information at the same time. 2 Similarities and Differences between WebSocket and Httpsame:
different:
3 WebSocket and SocketSocket itself is not a protocol. It works at the session layer of the OSI model. It is a socket, an API of the TCP/IP network, and an abstract layer that exists to facilitate people to directly use lower-level protocols. Socket is actually a facade mode, which hides the complex TCP/IP protocol family behind the Socket interface. For users, a set of simple interfaces is all that is needed, allowing Socket to organize data to comply with the specified protocol. WebSocket is a typical application layer protocol. 4 WebSocket HTTP and TCP/IPWebSocket, like HTTP, is built on top of TCP and transmits data through TCP. http and websocket cannot be said to be two completely equal and separate things. To be precise, websocket should be regarded as a subordinate category of http. References
|
<<: AT&T announces 5G network now covers 250 million people
>>: South Korea pushes for independence of 6G core technology
In the cloud-first era, the relationship between ...
Open RAN is an industry standard designed to powe...
Labs Guide When we browse Moments and watch video...
I just shared the news about XenSpec a few days a...
The background and significance of data empowerin...
Many people have encountered this problem when co...
Computing power is the core of cloud computing. W...
After learning the DR/BDR selection rules in OSPF...
With the explosive development of the Internet, t...
DesiVPS acquired LosAngelesVPS a month ago and is...
Nowadays, with the country's high attention, ...
The fourth industrial revolution led by digital t...
There are already more than 1,100 “5G+Industrial ...
In daily operation and maintenance work, file tra...
Hosteons released the OpenVZ 7 VPS Migration to K...