This module simply initializes socket.io and configures it in a way that single broadcast can be relayed over unlimited users without any bandwidth/CPU usage issues. Everything happens peer-to-peer!
hi,expert
i find a bug in share-files.html or maybe in rtcmulticonnection.js.
i make a connect network like this at first:
peer 1<--peer 2<--peer 3
peer2 request file from peer1
peer3 request file from peer2
then i close peer 3
at this time,i transfer png file from peer1 to peer2.but the peer2 could not show the png image,only show 100% with the progressbar.
also,i do many similar experiments to test it,it is same on different connect network.
i trace the code,and find the bugs in share-files.html:
if i close peer3,the connection.broadcastingConnection.numberOfConnectedUsers has not decreased 1,so in fact,the real connection.broadcastingConnection.numberOfConnectedUsers is 0 but your code here connection.broadcastingConnection.numberOfConnectedUsers is still 1.it is not correct.
so the bugs happen.
i don't know how to rectify it.could you help to remove the bugs?
by the way,i do the experiment on three tab of firefox.i have only one PC.i dont know whether the bugs will happen when i do the same experiment on three PC.
could you give me some ideas?thanks
hi,expert i find a bug in share-files.html or maybe in rtcmulticonnection.js. i make a connect network like this at first: peer 1<--peer 2<--peer 3 peer2 request file from peer1 peer3 request file from peer2 then i close peer 3 at this time,i transfer png file from peer1 to peer2.but the peer2 could not show the png image,only show 100% with the progressbar.
also,i do many similar experiments to test it,it is same on different connect network. i trace the code,and find the bugs in share-files.html:
if i close peer3,the connection.broadcastingConnection.numberOfConnectedUsers has not decreased 1,so in fact,the real connection.broadcastingConnection.numberOfConnectedUsers is 0 but your code here connection.broadcastingConnection.numberOfConnectedUsers is still 1.it is not correct. so the bugs happen. i don't know how to rectify it.could you help to remove the bugs? by the way,i do the experiment on three tab of firefox.i have only one PC.i dont know whether the bugs will happen when i do the same experiment on three PC. could you give me some ideas?thanks