Godot has a nice netcode story with ENet, WebSocket and WebRTC integration. If you just want a off-the-shelf product instead of bespoke Erlangy stuff, I think there are a lot of good options out there like Godot's native high-level networking, products like Nakama, etc.