Original address: http://www.ibm.com/developerworks/cn/java/j-lo-WebSocket/WebSocket Past LifeAs we all know, the interactive process of WEB application is usually the client sends a request through the browser, the server side receives the request
This topic should be the frequency of the interview is relatively high bar .... However, it is necessary to have a deeper understanding of the relationship between the two. Don't say much nonsense, direct into the question:WebSocket Introduction and
Introduction and principle of websocket
WebSocket protocol is a new protocol for HTML5. It implements browser-to-server full-duplex communication (Full-duplex). The first handshake needs to be done with an HTTP request.
--Baidu
Concept As a next-generation Web Standard, HTML5 has a number of compelling new features, such as canvas, local storage, multimedia programming interfaces, WebSocket, and so on. Today we'll take a look at the WebSocket, which is called "Web TCP."
This is a creation in
Article, where the information may have evolved or changed.
The message notification in the project is used by WebSocket, which feels better than HTTP long connection chunking, and is hereby recorded.The WebSocket protocol is
(a) WebSocket profileShort Connection : in the traditional HTTP protocol, the client and server side of the communication mode is a short connection, that is, the server side does not maintain a connection with the client, after the message is sent,
1. What is WebSocket?
WebSocket is a protocol specification proposed by HTML5, referring to rfc6455.
WebSocket the specification of a communication, through a handshake mechanism, between the client (browser) and the server (webserver) can
First Order
In reading > 11th chapter WebSocket The development of the agreement, I think the author of this section is relatively simple, for the relevant knowledge is unfamiliar, not suitable to use Netty to achieve websocket. The plan is divided
As we all know, the communication process of Web application is usually the client sends a request through the browser, the server side receives the request to process and returns the result to the client, the client browser renders the information.
The project used the message of real-time push, check the data used to spring WebSocket, looking for a lot of information, or feel the official Help document written most clearly, is summarized below.
There are also two very classic examples: one is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.