Prechádzať zdrojové kódy

reliable by default true now

Michelle Bu 11 rokov pred
rodič
commit
ac8a5787ca
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      examples/chat.html

+ 2 - 1
examples/chat.html

@@ -111,13 +111,14 @@ $(document).ready(function() {
       var c = peer.connect(requestedPeer, {
         label: 'chat',
         serialization: 'none',
+        reliable: false,
         metadata: {message: 'hi i want to chat with you!'}
       });
       c.on('open', function() {
         connect(c);
       });
       c.on('error', function(err) { alert(err); });
-      var f = peer.connect(requestedPeer, { reliable: true, label: 'file' });
+      var f = peer.connect(requestedPeer, { label: 'file' });
       f.on('open', function() {
         connect(f);
       });