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, 2486🔥, 0💬
Popular Posts:
What Is poi-examples-5.2.3.jar? poi-examples-5.2.3.jar is one of the JAR files for Apache POI 5.2.3,...
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...