Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Handshake and Data Messages in WebSocket Protocol
What are handshake and data messages used in WebSocket Protocol?
✍: FYIcenter.com
When a client and a server communicate with WebSocket protocol,
they use the following handshake messages before and after their
data transfer messages:
1. Client sends handshake request to server: "GET /chat HTTP/1.1". WebSocket borrows the HTTP request format for this message.
2. Server sends back this handshake response to client: "HTTP/1.1 101 Switching Protocols". WebSocket borrows the HTTP request format for this message.
3. Client starts to send data payload frames to server in a two-way communication style.
4. Server starts to send data payload frames to client in a two-way communication style.
5. Client sends "Close" frame to server.
6. Server sends "Close" frame to client.
The diagram below shows how client and server talk to each other in WebSocket protocol:
⇒ WebSocket Opening Handshake Messages
2018-01-27, ∼2933🔥, 0💬
Popular Posts:
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
maven-model-builder-3.8. 6.jaris the JAR file for Apache Maven 3.8.6 Model Builder module. Apache Ma...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
Where to get the Java source code for Connector/J 8.0 Core Impl module? Java source code files for C...
What Is ojdbc7.jar for Oracle 12c R1? ojdbc7.jar for Oracle 12c R1 is the JAR files of ojdbc.jar, JD...