3 ms·
Yes. Web sockets are implemented on top of a HTTP verb, e.g.: {Regular HTTP handshake} {Socket negotiation} {Data sent over the open connection} Unless your
by notauser 16y ago
Yes.
Web sockets are implemented on top of a HTTP verb, e.g.:
{Regular HTTP handshake} {Socket negotiation} {Data sent over the open connection}
Unless your browser also accepts incoming HTTP connections it won't be able to accept incoming requests. It's not UDP as you know it, so you can't just fiddle with DNS or a router and re-direct packets to another JavaScript P2P client.
Hopefully that'll get fixed one day. Direct P2P from the browser would be incredibly useful, but there are real problems with cross domain DNS abuse. For example it's possible to use IE6 visitors to run a search engine spider without their knowledge or consent because of the (reasonable sounding) same-domain-cross-iFrame-read permissions.