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, ∼3073🔥, 0💬
Popular Posts:
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
JBrowser Source Code Files are provided in the source package file. You can download JBrowser source...
JDK 17 java.sql.jmod is the JMOD file for JDK 17 SQL (Structured Query Language) module. JDK 17 SQL ...
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...