Trying some sssl

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 15:21:52 +01:00
parent d5731121f9
commit 6c5c0af12e
3 changed files with 11 additions and 9 deletions

View File

@@ -40,12 +40,13 @@ var seekTo;
var song_title;
var connection_options = {
'sync disconnect on unload':true
'sync disconnect on unload':true,
'secure': true
};
if(window.location.hostname == "zoff.no") add = "dev.zoff.no";
else add = "localhost";
var socket = io.connect('http://'+add+':8880', connection_options);
var socket = io.connect('//'+add+':8880', connection_options);
socket.on("get_list", function(){
socket.emit('list', chan.toLowerCase());
});