Commit 68d97658 authored by Afaq Tariq's avatar Afaq Tariq
Browse files

Merge pull request #374 from basert/master

make websocket connection working with SSL
parents a49ac412 49147b20
......@@ -65,7 +65,7 @@
*/
var establishWebsocketConnection = function() {
var websocketUrl = 'ws://' + window.location.hostname + ':' + window.location.port;
var websocketUrl = (location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.hostname + ':' + window.location.port;
if (websocket.connection === null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment