Message

sealed class Message : SocketIOPacket(source)

A parent for packet types having a payload.

Inheritors

Properties

Link copied to clipboard
abstract val ackId: Int?

An ID used to match an Event with the corresponding Ack. When an ackId is present in an Event packet, it means an Ack packet is expected by the sender.

Link copied to clipboard
abstract val namespace: String

The namespace this packet belongs to, useful when multiplexing. The default namespace is "/".

Link copied to clipboard
abstract val payload: JsonArray

The payload of the message, which must be a non-empty array. Usually the first element of the array is the event type (string or int), and the rest is the actual data.