|
|
|
@ -20,15 +20,23 @@ let wsChat;
@@ -20,15 +20,23 @@ let wsChat;
|
|
|
|
|
|
|
|
|
|
const room = getRoom(); |
|
|
|
|
|
|
|
|
|
if(location.protocol === 'http:'){ |
|
|
|
|
wsChat = new WebSocket("ws://localhost:8080/comm"); |
|
|
|
|
} |
|
|
|
|
window.addEventListener('load', function(){ |
|
|
|
|
if(location.protocol === 'http:'){ |
|
|
|
|
wsChat = new WebSocket("ws://localhost:8080/comm"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else{ |
|
|
|
|
wsChat = new WebSocket("wss://localhost:8080/comm"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else{ |
|
|
|
|
wsChat = new WebSocket("wss://localhost:8080/comm"); |
|
|
|
|
} |
|
|
|
|
/* |
|
|
|
|
******************************************************************************************************************************** |
|
|
|
|
******************************************************************************************************************************** |
|
|
|
|
******************************************************************************************************************************** |
|
|
|
|
******************************************************************************************************************************** |
|
|
|
|
******************************************************************************************************************************** |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
window.addEventListener('load', function(){ |
|
|
|
|
//startCounter();//shows the time spent in room
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|