1

In Websockets, which is an exciting new concept of HTML 5, there is a specific feature - Handshaking between the WebSockets server and Client. Can anyone explain what this is used for??

Thank You!!

0

3 Answers 3

0

Found a reference: http://en.wikipedia.org/wiki/Web_Sockets#Server_Implementations

0

you can read more about the websockets protocol including the handshake here: https://datatracker.ietf.org/doc/html/draft-ietf-hybi-thewebsocketprotocol-06

0

The handshake process is used in establishing and validating a connection. The purpose of the handshake is to prove the server has read the client's handshake. This is accomplished through the use of 2 fields: Sec-WebSocket-Key1 and Sec-WebSocket-Key2. The Sec-WebSocket-Key1 and Sec-WebSocket-Key2 fields are 8-byte random tokens which the server (then) uses to construct a 16-byte token at the end of its handshake...this then is used to prove the server has read the client's handshake.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.