Search Unity

Remaining messages when stopping network

Discussion in 'Multiplayer' started by dmontesdeocaSMK, Jul 18, 2017.

  1. dmontesdeocaSMK

    dmontesdeocaSMK

    Joined:
    Dec 16, 2016
    Posts:
    10
    Hi,

    I'm using unet message system to sync some parts of my game. To close the game, I use a simply ack - done message exchange between my two players.

    Sometimes due to connection speed issues, one of my players closes his connection (NetworkManager.StopClient()) before the 'done' message has already been sent, although the call to Connection.Send() has already been done.

    Is there any way to know if there are still remaining messages on the Unet Messages Queue?

    Thank you!