publishData

suspend fun publishData(data: ByteArray, reliability: DataPublishReliability = DataPublishReliability.RELIABLE, topic: String? = null, identities: List<Participant.Identity>? = null)

Publish a new data payload to the room. Data will be forwarded to each participant in the room. Each payload must not exceed 15k in size

Parameters

data

payload to send

reliability

for delivery guarantee, use RELIABLE. for fastest delivery without guarantee, use LOSSY

topic

the topic under which the message was published

identities

list of participant identities to deliver the payload, null to deliver to everyone

Sources

SDK source
Link copied to clipboard