How To Send A Message To Selected Members Of Room

You may send a message to selected members of the room instead of all members. The message will be delivered by OnMemberMessage. We recommend your message includes the senders user ID and other information so that the recipients may detect who has sent the message and behave accordingly.


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

messageData.SenderID = id;
messageData.Message = "Hello";
byte[] message = encoder.Encode(messageData);
bool reliable = false; // for UDP, if set to true, broadcast message will be sent as an RUDP packet
room.MessageTo(room.GetRoomID(), message, reliable);