publishMessage

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

Publish a new message to this SyncStream.

Parameters

data

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

Throws

TwilioException

When error occurred while publishing message.