What is the correct sequence for a client to signal to the server that it is going to close, i.e. to avoid events to be still added to is queue ?
Hello,
You just need to destroy client session on the server. If you use also server callbacks (events) so you should exclude that client from the list of events recipients and unregister client before destroying session. Look at our SuperTCP Channel Chat sample for example.
Best regards.