RustyVolleySrc icon indicating copy to clipboard operation
RustyVolleySrc copied to clipboard

Add remote multiplayer.

Open codec-abc opened this issue 6 years ago • 5 comments

codec-abc avatar Feb 02 '19 18:02 codec-abc

I will wait until an abstraction library exist both for desktop and browser (WASM).

codec-abc avatar Mar 18 '19 19:03 codec-abc

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.

codec-abc avatar Jul 22 '19 13:07 codec-abc

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

gianpaj avatar Apr 27 '21 08:04 gianpaj

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 avatar Apr 27 '21 08:04 codec-abc

@codec-abc I see... There must be another way. Nothing urgent from my side, of course

gianpaj avatar May 10 '21 09:05 gianpaj