Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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, 2230🔥, 0💬
Popular Posts:
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...