freehuntx / godot-matcha

Easy webrtc matchmaking using WebTorrent tracker
MIT License
86 stars 4 forks source link

[Demo] Use custom html (web export) #6

Open freehuntx opened 10 months ago

freehuntx commented 10 months ago

We should use a custom html in the demo web export to explain the "COI" error and what to do about it. (Allow service worker)

ValorZard commented 8 months ago

Could you go into more detail as to what this error is? I'm interested in using godot-matcha, but I want to know what I'm getting myself into

freehuntx commented 8 months ago

Its no error that comes from godot-matcha. Its a typical problem with web exports of godot. See: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html#serving-the-files

This issue just exists because i host a demo of godot-matcha in github pages. This requires me to use the "coi-serviceworker" workaround mentioned in the link above.

So if people use my demo in private window, they will get an error page. The idea: Add text to that error page which mentions something like "please open without private mode"

freehuntx commented 8 months ago

PS: Im reworking the library to use mqtt. The API will be changed alot but be more stable (hopefully). So if you plan to use godot-matcha you should expect alot of changes. Be sure you are ready for that ride ^^ Otherwise you can see this repo as a POC in the current state which you can learn from or change the library how you need.

coelhucas commented 4 months ago

Hey, I still don't know much about mqtt but got curious about the rationale of why using it over WebRTC and whether this would still support direct connections — I suppose so since the implementation will likely still rely on WebTorrent for signaling?

Sorry for bothering, just interested in reading more about it

freehuntx commented 4 months ago

its webtorrent vs mqtt. webrtc stays. webtorrent has some limitations regarding peer count and flexibility in regards of signaling. mqtt on the other side is a pubsub system that allows for far more Connections.