setSendOnly

fun setSendOnly(sendOnly: Array<String>)

This method can be used to restrict message delivery to specific participants.

When set, only the specified participant IDs will receive the message. Pass null to send to all subscribers (default behavior).

Parameters

sendOnly

An array of participant IDs to receive the message, or null for all subscribers.