Correctly set wss: protocol for secure connections

sockjs-client-ws clients currently fail to connect to servers using https because the "ws://" protocol is hard-coded.  Change this to use "wss://" if an https: URL is specified.