cleaned up cwebsocket_handshake_handler