Explorar el Código

Fix connection receiver

Just to fix the connection receiver to successfully send a message to the connection requester
Jonathan Mayol hace 7 años
padre
commit
f14f54cc49
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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>');