wss detection for https