We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa38365 commit b1aaef0Copy full SHA for b1aaef0
example/index.html
@@ -197,8 +197,7 @@
197
198
var room = window.location.hash.slice(1);
199
200
- //When using localhost
201
- rtc.connect("ws://localhost:8000/", room);
+ rtc.connect("ws:" + window.location.href.substring(window.location.protocol.length), room);
202
203
rtc.on('add remote stream', function(stream, socketId) {
204
console.log("ADDING REMOTE STREAM...");
0 commit comments