Re:Peerbind: convert a webpage into a massively interconnect...
by Palahala on Sunday October 09, 2011 @03:45PM
(#3091144)
Nice! Any chance you know if (and where) we can report issues?
One possible issue:
It seems that binding to the same peer-event multiple times, also SENDS all outgoing events multiple times. For example, open the example website peerbind.com and then run:
$('#chatinput').peerbind("change", { peer: function(e) { console.log("Incoming", e.peerSrc, e.peerData); } });
Now, by simply binding to incoming events twice, everything one sends in the chat, is sent twice too. I guess that's not the expected behavior?
Still, nice! And for those who agree that the chat example is not very secure: peek into the HTML source for the actual implementation! ;-)
Re:Peerbind: convert a webpage into a massively interconnect...
by mamacker on Tuesday October 11, 2011 @12:12PM
(#3099143)
Good find! Thanks, I'll take a look. If you see anything else wrong - feel free to send me a note: [email protected]
The latencies were fantastic, too.
If you're looking to do real-time many-user interactions on a website with minimal effort, try this!