Room Event - OnMemberJoin

The event is raised when a new client joins the room you are in. The message passed to the event is the message sent from the new client that joined the room.

 

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

room.OnMemberJoin += OnRoomMemberJoin;

private void OnRoomMemberJoin(byte[] message)
{
  Encoder decoded = encoder.Decode(message);
 
  if (decoded.SenderID == myUserID)
  {
    // this is a message sent from me. I am the new member just joined the room
  }
}