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
Since its birth in the 1960s, network technology ...
Edge computing, a powerful technology that has be...
The next generation of wireless connectivity, 5G,...
HostNamaste recently promoted special annual VPS ...
Overnight, 5G changed the world. First, Qualcomm ...
I believe that everyone was like me when they fir...
1. What is the difference between fog computing a...
In order to set up the relay function of the wire...
Recently, IDC released the "China IT Unified...
With the official release of 5G commercial photog...
Ovum said that the recent decision by 3GPP to acc...
This article mainly conducts an in-depth analysis...
Since the three major operators launched unlimite...
At the end of 2013, the Ministry of Industry and ...
At the press conference of the National Developme...