RustyVolleySrc
RustyVolleySrc copied to clipboard
Add remote multiplayer.
I will wait until an abstraction library exist both for desktop and browser (WASM).
Since browser to browser communication is a bit of mess and I don't want to dig it, I will try with websocket. A simple web server should maintain lobby and forward data to clients using websocket. The server can probably be hosted on something like Google App Engine.
I believe WebRTC would make more sense. you can use a free stun server: http://stunprotocol.org/ https://en.wikipedia.org/wiki/WebRTC
https://webrtc.github.io/samples/src/content/datachannel/basic/
https://github.com/lesmana/webrtc-without-signaling-server/blob/master/common.js
I have experimented with WebRTC and I don't believe it is a good fit. I can use a free STUN server but then I still need a signaling server. Also it won't work on some network where a TURN is needed because of some firewall. Moreover, WebRTC's APIs are hard to use, error handling is complex, and behavior is not the same between different browsers.
@codec-abc I see... There must be another way. Nothing urgent from my side, of course