Room Event - OnMemberLeave

The event is raised when a client leaves the room you are in. The message passed to the event is the message sent from the client that left the room.

 

NOTE: encoder shown here is an example and the client SDK does not include it.

room.OnMemberLeave += OnRoomMemberLeave;

private void OnRoomMemberLeave(byte[] message)
{
  Encoder decoded = encoder.Decode(message);
  leftUserID = decoded.SenderID;

  goodbyteMessage = decode; 

}