Does HTML5 Support Peer-to-Peer (and not just WebSockets)
16,832
Solution 1
See the answers for Will HTML5 allow web apps to make peer-to-peer HTTP connections? However, the content in the WebSockets specification seems to have gone, so I suspect the answer now is "no".
Solution 2
WebRTC http://www.webrtc.org/ https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRTC
But in 2010 it wasn’t a thing :(
Author by
eeejay
Updated on July 20, 2022Comments
-
eeejay almost 2 years
The language I am working in is Javascript on HTML5-compatible browsers.
My understanding is that WebSockets require a socket server to transport push notifications and messages back and forth between clients.
Is there an actual peer-to-peer capability with HTML5 that does not require a socket server? Has anyone seen example client-side code in Javascript that exemplifies this capability?
-
shacharz about 9 yearsThis is incorrect, WebRTC support direct peer-to-peer communications. And there are existing applications already who use it: sharefest.me , peer5.com
-
Chris Morgan about 9 yearsYes, WebRTC has indeed taken up this matter. In 2010 it wasn’t a thing, though; I believe it was more than a year before there were any stable implementations of it.
-
Zibri over 5 yearsI like httprelay.io is there on github any source code similar to httprelay.io ?