Leaving a room will raise OnLeave and the other members’ clients will raise OnMemberLeave if the leave was successful. We recommend your message include the sender's ID and other necessary information so that the recipients may detect which member has left the room and behave accordingly. If a UDP client is used, the message is sent as an RUDP.
NOTE: encoder shown here is an example and the client SDK does not include it.
messageData.SenderID = id;