Adding callback for websockets handshake protocol, in order to enable define custom logic in hanshake, for example auth.
Fixes.