|
@@ -197,8 +197,7 @@
|
|
|
|
|
|
var room = window.location.hash.slice(1);
|
|
|
|
|
|
- //When using localhost
|
|
|
- rtc.connect("ws://localhost:8000/", room);
|
|
|
+ rtc.connect("ws:" + window.location.href.substring(window.location.protocol.length), room);
|
|
|
|
|
|
rtc.on('add remote stream', function(stream, socketId) {
|
|
|
console.log("ADDING REMOTE STREAM...");
|