Do websockets allow for p2p (browser to browser) communication?
To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives? Any help is appreciated. kanaka No. Browsers can only initiate WebSockets connections, not receive them. The W3C browser API spec only defines how to start an outbound connection. You can make an application that would both initiate and accept WebSockets connections, but browsers do not do this. You might look at Pusher App which you could use to build a