Disconnected server will be as followed
Close client program
Close server program
Call NetClient.Disconnect from client
Call NetServer.CloseConnection from server
When it disconnected from server following event will occur.
Callback NetClient.LeaveServerHandler from client.
If you are calling NetClient.Disconnect or NetClient.Dispose manually, it will not callback to LeaveServerHandler. However, it will be called back if the thread where NetClient.FrameMove is called and NetClient.Disconnect is called are same.
Please refer to 13. Set RMI function and Event and set an event up for receiving LeaveServer event.