Open freehuntx opened 10 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
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"
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.
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
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.
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)