Message

data class Message(val sid: String, val data: <Error class: unknown class>)

Single message in a SyncStream.

Constructors

Link copied to clipboard
constructor(sid: String, data: <Error class: unknown class>)

Properties

Link copied to clipboard
val data: <Error class: unknown class>

Payload of this Message. Maximum size in serialized JSON: 4KB.

Link copied to clipboard
val sid: String

An immutable system-assigned identifier of this Message.

Functions

Link copied to clipboard
inline fun <T : Any> SyncStream.Message.data(): T

Deserializes the SyncStream.Message.data into a value of type T using a deserializer retrieved from reified type parameter.