What does handshake mean?

While studying on WebSocket , I read the following sentence:

Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as a request for upgrade.

  • in this context, what does handshake mean?
  • in practice, which means "...your handshake is interpreted by HTTP servers as an Upgrade request"?
Author: Maniero, 2017-01-31

1 answers

Handshake: P

In this context, what does handshake mean?

Is the initial communication between two applications that will communicate. During the process of handshaking each of the applications will "negotiate" how they will work, one passes how they want to communicate within certain parameters specified and the other says whether it accepts or denies or offers alternatives for the other side to decide what it accepts. If they the communication itself begins.

The process can occur during data transmission after each step. One side can confirm receipt as agreed.

Have more details about HTTP in How does the HTTP protocol process requests?.

In practice, which means "...is your handshake interpreted by HTTP servers as an Upgrade request"?

This request upgrade is something that HTTP uses to indicate that it will use something new to the protocol, so HTTP happens to be used only as transport.

 14
Author: Maniero, 2017-04-13 12:59:36