publishMessage

abstract suspend fun publishMessage(sidOrUniqueName: String, data: <Error class: unknown class>): SyncStream.Message

Publish a new message to SyncStream without opening it.

Parameters

sidOrUniqueName

SID or unique name of existing SyncStream.

data

Contains the payload of the dispatched message. Maximum size in serialized JSON: 4KB.

Throws

TwilioException

When error occurred while publishing message.