Is this possible? Will this be possible any time soon?
Here is advanced Google Search, on JavaScript websockets peer to peer
Filtered for last year only.
Related SO by Year
2009 post – peer to peer web sockets is planned
2011 post – I don’t think it is possible
2011 Post – Not Possible + Motherload of more links
2011 Post – WebRTC on Horizon – The Best answer so far
For the current status check the webrtc site maintained By Google…this might provide an understanding of when you can switch from peer to proxy to peer….to peer to peer.
This question is answered–look for “WebRTC” near the bottom.
What you are talking about is not part of the Websockets specification but something called WebRTC, specifically the Peer-to-Peer Data API.
No browser implements it yet, but Chrome and Firefox have started to implement parts of WebRTC and probably will implement this too.