PubSubPublishOptions

constructor(persist: Boolean = false, sendOnly: Array<String>? = null)

Parameters

persist

true stores the message on the server, so anyone who subscribes to the topic later receives it on PubSubMessageListener.onOldMessagesReceived. false, the default, delivers it once to whoever is subscribed right now.

sendOnly

delivers the message only to these participant ids. null, the default, and an empty array both broadcast to every subscriber.