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

Message

abstract class Message

Channel messages

Usually this class should not be created directly. It is used as a wrapper around response in Channel.on callback.

Constructors

<init>

Channel messages

Message()

Properties

response

Response data from the server

abstract val response: JSONObject

status

Status of the response as sent by the server.

abstract val status: String

Functions

getError

Returns the error reason.

open fun getError(): String

isError

Returns the error state of the message

open fun isError(): Boolean