detect websocket secure