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.

in Engine by (55 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.

by (23 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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.