How to make a browser to browser (peer to peer) connection?
I want to write a website using *html5, css* and *JavaScript* on client side that will allow **direct tcp/ip connection between the client browsers once the page is loaded**.

I need to do this to to reduce latency since the site will require that the input from one of the users to be transmitted to the other user as soon as possible so sending data from client A to Server and then to client B is not a good option.

I read previous posts on this subject but there were no good solution/examples available.

From what i read the direct connection between clients can be made using plugins like Silverlight, Java or Flash but i would require a solution without plugins, only with JavaScript.

WebSocket seems to allow direct p2p connections between browsers but it is not supported completely on all browsers or is disabled by default.

I also read about Socket.IO but i am not sure if it allows for direct p2p between two browser clients (anyone knows if it allows it?).

Thanks for replies!
How to make a browser to browser (peer to peer) connection?
===

I want to write a website using *html5, css* and *JavaScript* on client side that will allow **direct tcp/ip connection between the client browsers once the page is loaded**.

I need to do this to to reduce latency since the site will require that the input from one of the users to be transmitted to the other user as soon as possible so sending data from client A to Server and then to client B is not a good option.

I read previous posts on this subject but there were no good solution/examples available.

From what i read the direct connection between clients can be made using plugins like Silverlight, Java or Flash but i would require a solution without plugins, only with JavaScript.

WebSocket seems to allow direct p2p connections between browsers but it is not supported completely on all browsers or is disabled by default.

I also read about Socket.IO but i am not sure if it allows for direct p2p between two browser clients (anyone knows if it allows it?).

Thanks for replies!