BinaryAck

data class BinaryAck(val namespace: String, val ackId: Int, val payload: List<PayloadElement>, val nBinaryAttachments: Int) : SocketIOPacket.BinaryMessage(source)

Used to acknowledge an event (when the response includes binary data).

Constructors

Link copied to clipboard
constructor(namespace: String, ackId: Int, payload: List<PayloadElement>, nBinaryAttachments: Int)

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 nBinaryAttachments: Int

The number of binary attachments that follow this message.

Link copied to clipboard
open override val payload: List<PayloadElement>

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.