Using WSS for websockets when connecting with SSL, WS otherwise.