eeejay
eeejay

Reputation: 5894

Does HTML5 Support Peer-to-Peer (and not just WebSockets)

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?

Upvotes: 10

Views: 18263

Answers (4)

Jonas
Jonas

Reputation: 5149

Most of the time browsers are behind firewall and you cannot connect directly to browser. If you don't want to implement server yourself there is a solution:

https://httprelay.io/

You can use AJAX calls to communicate between browsers.

Upvotes: 0

stevemao
stevemao

Reputation: 1493

WebRTC http://www.webrtc.org/ https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRTC

But in 2010 it wasn’t a thing :(

Upvotes: 3

roo
roo

Reputation: 27

https://www.peer5.com/faq

Just seen this online, may be worth looking at.

Upvotes: 0

Chris Morgan
Chris Morgan

Reputation: 90852

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".

Upvotes: 4

Related Questions