tried to support "wss" for SL and WP platform