Added WebSocket validation for upgrade requests and upgrade responses on WebSocket. Set it before you open the WebSocket.