Message

class Message(ref: String, topic: String, event: String, rawPayload: Payload, joinRef: String?)

Properties

event
Link copied to clipboard
@SerializedName(value = event)
val event: String
The message event name, for example "phx_join" or any other custom name
joinRef
Link copied to clipboard
@SerializedName(value = join_ref)
val joinRef: String? = null
The ref sent during a join event.
payload
Link copied to clipboard
val payload: Payload
The payload of the message
rawPayload
Link copied to clipboard
@SerializedName(value = payload)
val rawPayload: Payload
The raw payload of the message.
ref
Link copied to clipboard
@SerializedName(value = ref)
val ref: String
The unique string ref.
status
Link copied to clipboard
val status: String?
Convenience var to access the message's payload's status.
topic
Link copied to clipboard
@SerializedName(value = topic)
val topic: String
The message topic