Table of Contents

Class ClientAcknowledgedPublishPacketEventArgs

Namespace
MQTTnet.Server
Assembly
MQTTnet.dll
public sealed class ClientAcknowledgedPublishPacketEventArgs : EventArgs
Inheritance
ClientAcknowledgedPublishPacketEventArgs
Inherited Members

Constructors

ClientAcknowledgedPublishPacketEventArgs(string, IDictionary, MqttPublishPacket, MqttPacketWithIdentifier)

public ClientAcknowledgedPublishPacketEventArgs(string clientId, IDictionary sessionItems, MqttPublishPacket publishPacket, MqttPacketWithIdentifier acknowledgePacket)

Parameters

clientId string
sessionItems IDictionary
publishPacket MqttPublishPacket
acknowledgePacket MqttPacketWithIdentifier

Properties

AcknowledgePacket

Gets the packet which was used for acknowledge. This can be a PubAck or PubComp packet.

public MqttPacketWithIdentifier AcknowledgePacket { get; }

Property Value

MqttPacketWithIdentifier

ClientId

Gets the ID of the client which acknowledged a PUBLISH packet.

public string ClientId { get; }

Property Value

string

IsCompleted

Gets whether the PUBLISH packet is fully acknowledged. This is the case for PUBACK (QoS 1) and PUBCOMP (QoS 2.

public bool IsCompleted { get; }

Property Value

bool

PublishPacket

Gets the PUBLISH packet which was acknowledged.

public MqttPublishPacket PublishPacket { get; }

Property Value

MqttPublishPacket

SessionItems

Gets the session items which contain custom user data per session.

public IDictionary SessionItems { get; }

Property Value

IDictionary