Download

Does UE4 send a packet to connected server when program is closed?

Yo guys,

FSockets are great to connect to third party server!

However, my friends, when I connect to my C# server, my server accepts me, when I close the game in a dirty way (control + F4), my UE4 game does not disconnect from the server. So there is no game running, and my server is like, checking to see if the client is still connected (pinging). A c# application would send a packet letting the server know it’s closed the program, so how does UE4 handle this?

What do I do?

I can’t use FSocket - > Disconnect , because If I close my program unfaithfully then nothing will be called.

Please help.

Mo