How to disable server relay on an EnetMultiplayer Server?

Godot Version

4.2.2-rc3

Question

I would like to be able to disable communication between peers, leaving only client-to-server communication

What do you mean? ENet follows the Server-Client model, there should be no direct communication between peers.

Because of this documentation here: SceneMultiplayer — Godot Engine (stable) documentation in English

Again: There won’t be any direct communication between clients. All communication will go through the server (that’s what the word “relay” means).

If you don’t want clients to be notified about other clients connecting or disconnecting to the server, you can set server_relay = false, yes. That’s all there is to it. If you have a more concrete question than that, please go into more detail.