|
|
@ -18,9 +18,17 @@ var myPC; |
|
|
|
var awaitingResponse; |
|
|
|
var awaitingResponse; |
|
|
|
var streamConstraints; |
|
|
|
var streamConstraints; |
|
|
|
var myMediaStream; |
|
|
|
var myMediaStream; |
|
|
|
|
|
|
|
let wsChat; |
|
|
|
|
|
|
|
|
|
|
|
const room = getRoom(); |
|
|
|
const room = getRoom(); |
|
|
|
const wsChat = new WebSocket("ws://localhost:8080/comm"); |
|
|
|
|
|
|
|
|
|
|
|
if(location.protocol === 'http:'){ |
|
|
|
|
|
|
|
wsChat = new WebSocket("ws://1410inc.xyz:8080/comm"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
wsChat = new WebSocket("wss://1410inc.xyz:8080/wss2/comm"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('load', function(){ |
|
|
|
window.addEventListener('load', function(){ |
|
|
|
startCounter();//shows the time spent in room
|
|
|
|
startCounter();//shows the time spent in room
|
|
|
|