I am complete noob to networking and trying to understand exactly what are my options when it comes to making an online multiplayer game in Godot 4.3.
Reading through the docs:
https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html
"...Most notably, the HTML5 platform currently offers WebSockets and WebRTC support but lacks some of the higher-level features, as well as raw access to low-level protocols like TCP and UDP."
(Meaning, direct TCP/UDP is not supported? But doesn't HTML basically run off of TCP protocol??)
https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html#limitations
"Low level networking is not implemented due to lacking support in browsers."
(Again--no TCP/UDP.)
"Currently, only HTTP client, HTTP requests, WebSocket (client) and WebRTC are supported."
(Meaning, ENet is not supported? Also since it uses UDP under the hood?)
==========
TLDR:
For HTML online multiplayer games, one must use either direct HTTP, WebSocket or WebRTC.
TCP/UDP and ENet are not supported.
Is that basically right?
Thanks!
https://gafferongames.com/post/why_cant_i_send_udp_packets_from_a_browser/
High-level vs low-level API: The following explains the differences of high- and low-level networking in Godot as well as some fundamentals. If you want to jump in head-first and add networking to ...
Hello readers, I’m no longer posting new content on gafferongames.com
Please check out my new blog at mas-bandwidth.com! Premise In 2017 the most popular web games like agar.io are networked via WebSockets over TCP. If a UDP equivalent of WebSockets could be incorporated into browsers, it would greatly improve the networking of these games.
Back...
HTML5 export allows publishing games made in Godot Engine to the browser. This requires support for WebAssembly and WebGL 2.0 in the user's browser. Export file name: We suggest users to export the...