Room Event - OnMemberMessage

The event is raised when a member of the room sends a message using MessageTo

 

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

room.OnMemberMessage += OnRoomMemberMessage;

private void OnRoomMemberMessage(byte[] message)
{
  Encoder decoded = encoder.Decode(message);
  if (decoded.SenderID == myUserID)
  {
    // This is my own broadcast message
  }
}