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, 2276🔥, 0💬
Popular Posts:
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Jav...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
maven-core-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Core module. Apache Maven is a software ...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...