4 ms·
How would you do it p2p? WebSockets don't provide UDP, so NAT traversal is potentally impossible.
by a1k0n 14y ago
How would you do it p2p? WebSockets don't provide UDP, so NAT traversal is potentally impossible.
- subsystem 14y agoI guess it would be more as a concept than technically. That is, you could send to a specific peer through the server. That way you could have only the messaging logic on the server and the game logic on the clients. The clients would then (again theoretically) be able to agree on a game state, optimize messaging and the other things you would normally do on the server.
- kanaka 14y agoWebRTC has a data channel proposal which would allow you to do P2P data communication: http://tools.ietf.org/html/draft-jesup-rtcweb-data-protocol-00 http://tools.ietf.org/html/draft-jesup-rtcweb-data-protocol-...