0 votes

Hi,

I'm working on a mini networking project. My clients are able to connect to a godot "dedicated" server. However, when my client closed the game, the server doesn't know that.

I need to catch the "quit game" event and "notify" the server that the player must be disconnected from the server.

asked May 21 in Engine by Bornide (51 points)

1 Answer

0 votes

I'm pretty sure the 'peer_disconnected' signal is fired on the NetworkedMultiplayerENet class when a client quits, you should be able to listen to that and do the cleanup from that.

answered May 21 by raksom (20 points)

Oh ok. I guess i should handle the signal and delete the client node on the server side.
I'm gonna try tomorow.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.