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.
2 parents 5864d2b + 654f9e2 commit 8ef0dceCopy full SHA for 8ef0dce
example/index.html
@@ -196,8 +196,10 @@
196
197
198
var room = window.location.hash.slice(1);
199
-
200
- rtc.connect("ws:" + window.location.href.substring(window.location.protocol.length), room);
+ var url = "ws:"+window.location.href.substring(window.location.protocol.length);
+ var hash = url.indexOf('#');
201
+ url = (hash !== -1) ? url.substring(0, hash) : url;
202
+ rtc.connect(url, room);
203
204
rtc.on('add remote stream', function(stream, socketId) {
205
console.log("ADDING REMOTE STREAM...");
0 commit comments