Ack

data class Ack(val namespace: String, val ackId: Int, val payload: JsonArray) : SocketIOPacket.JsonMessage(source)

Used to acknowledge the event with the corresponding ackId.

Constructors

Link copied to clipboard
constructor(namespace: String, ackId: Int, payload: JsonArray)

Properties

Link copied to clipboard
open override 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
open override val namespace: String

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

Link copied to clipboard
open override 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.