What is WebSocketWebSocket is a protocol based on full-duplex communication on a single TCP connection. It solves the shortcoming of HTTP protocol that is not suitable for real-time communication. Compared with HTTP protocol, WebSocket protocol realizes persistent network communication, can realize long connection between client and server, and can carry out two-way real-time communication. The protocol name is "ws". WebSocket makes data exchange between clients and servers much simpler, allowing the server to actively push data to the client. In the WebSocket API, the browser and the server only need to complete a handshake, and then a persistent connection can be directly established between the two, and two-way data transmission can be carried out. In the WebSocket API, the browser and the server only need to complete a handshake, and then a fast channel is formed between the browser and the server. Data can be directly transmitted between the two. HTTP vs WebSocketFeatures of WebSocket
What is a Socket?Two programs on the network exchange data through a two-way communication connection. One end of this connection is called a Socket, so at least a pair of port numbers are required to establish a network communication connection. The essence of Socket is the encapsulation of TCP/IP protocol stack. It provides an interface for TCP or UDP programming, not another protocol. Through Socket, you can use TCP/IP protocol. |
<<: State management expert: Cookies and Session
>>: From theory to practice: the wide application of MUX VLAN in the network
Nowadays, the number of 5G package users and 5G m...
CloudSilk has launched a VPS host in Tokyo, Japan...
A network switch is a device that extends a netwo...
Recently, the Ministry of Industry and Informatio...
At the 7th Asia-Pacific Spectrum Management Confe...
1. Introduction to RIP RIP (Routing Information P...
In recent years, with the accelerated advancement...
Recently, the "Shanghai·Choose Extraordinary ...
At the HAS Analyst Conference recently, Chen Jinz...
[Shenzhen, China, July 27, 2020] Today, Huawei...
With the release of the operating data of the thr...
In the Underlay network, how to recycle zombie IP...
In the era of the Internet of Everything, 5G, as ...
[[266934]] API Gateway The following three scenar...
BBR (Bottleneck Bandwidth and Round-trip propagat...