phoenix-channel / ch.kuon.phoenix / Socket / Message

Message

class Message

A raw socket message.

This object is usually not created directly and Channel.Message is used instead.

Constructors

<init>

A raw socket message.

Message(joinRef: Int? = null, ref: Int? = null, topic: String, event: String, payload: JSONObject = JSONObject())

Properties

event

The event name

var event: String

joinRef

A join_ref

var joinRef: Int?

payload

A payload object

var payload: JSONObject

ref

The ref

var ref: Int?

topic

The topic

var topic: String

Functions

toString

fun toString(): String