In literal terms, handshaking can be defined as gripping and shaking
of right hands by two individuals, as to symbolize greeting,
congratulations, agreement or farewell. In computer science, handshaking
is a process that ensures the server is in sync with its clients.
Handshaking is the basic concept of Web Socket protocol.
The following diagram shows the server handshake with various clients −
The following diagram shows the server handshake with various clients −