瀏覽代碼

Merge pull request #421 from mayoljonathan/master

Fix connection receiver
Jairo Caro-Accino Viciana 7 年之前
父節點
當前提交
3ff8c4f897
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      examples/chat.html

+ 3 - 0
examples/chat.html

@@ -61,6 +61,9 @@ function connect(c) {
     $('.filler').hide();
     $('#connections').append(chatbox);
 
+    // Just to fix the connection receiver to successfully send a message to the connection requester
+    c.open = true;
+    
     c.on('data', function(data) {
       messages.append('<div><span class="peer">' + c.peer + '</span>: ' + data +
         '</div>');