Use wss scheme when accessing with https protocol

Hi,

Currently the websocket connection is only being established using
the ws scheme.
Adding support for wss scheme when using https protocol to allow
ssl connection.
This commit is contained in:
Vladik Romanovsky 2014-07-24 19:39:25 +02:00 committed by Jeremy White
parent bc2bfd95bb
commit 293d405e15

View File

@ -99,6 +99,9 @@
}
}
port = spice_query_var('port', default_port);
if (window.location.protocol == 'https:') {
scheme = "wss://";
}
// If a token variable is passed in, set the parameter in a cookie.
// This is used by nova-spiceproxy.