diff --git a/README.md b/README.md index 076135a7cda8c4d293a319dac15d9d57e2767065..5dd6fc51700ef576ddbb905055ae7922e60ed014 100644 --- a/README.md +++ b/README.md @@ -26,12 +26,12 @@ By default, this enables video, audio, and data channels. const webrtc = new LioWebRTC({ // The local video ref set within your render function, or the element's id localVideoEl: localVideoIdOrRef, - // Immediately request camera and mic access. + // Immediately request camera and mic access autoRequestMedia: true, - // Displays events emitted by the webrtc object in the console. + // Displays events emitted by the webrtc object in the console debug: true, // The url for your signaling server - url: 'https://sandbox.simplewebrtc.com:443/', + url: 'https://sandbox.simplewebrtc.com:443/' }); ``` diff --git a/src/liowebrtc.js b/src/liowebrtc.js index 10c53e91ff0d7ba0be681f502508e26cb23fb038..56107a91dec7db7d6eec09e42028c3067d26de27 100644 --- a/src/liowebrtc.js +++ b/src/liowebrtc.js @@ -102,13 +102,7 @@ class LioWebRTC extends WildEmitter { peer.handleMessage(message); } else if (peers.length) { peers.forEach((p) => { - if (message.sid) { - if (p.sid === message.sid) { - p.handleMessage(message); - } - } else { - p.handleMessage(message); - } + p.handleMessage(message); }); } }); diff --git a/test/index.html b/test/index.html index d64f423cbb0d729cc44e347f4c7906ab1b1687f9..0b81e03764d4b5977a9884fe820bea8e04949537 100644 --- a/test/index.html +++ b/test/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>SimpleWebRTC Demo</title> + <title>LioWebRTC Demo</title> </head> <body> <h1 id="title">Start a room</h1> @@ -37,7 +37,6 @@ </div> <div id="remotes"></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> - <script src="../out/simplewebrtc-with-adapter.bundle.js"></script> <script> // grab the room from the URL var room = location.search && location.search.split('?')[1];