Table of Contents

Class ClientConnectedEventArgs

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

Constructors

ClientConnectedEventArgs(MqttConnectPacket, MqttProtocolVersion, string, IDictionary)

public ClientConnectedEventArgs(MqttConnectPacket connectPacket, MqttProtocolVersion protocolVersion, string endpoint, IDictionary sessionItems)

Parameters

connectPacket MqttConnectPacket
protocolVersion MqttProtocolVersion
endpoint string
sessionItems IDictionary

Properties

AuthenticationData

public byte[] AuthenticationData { get; }

Property Value

byte[]

AuthenticationMethod

public string AuthenticationMethod { get; }

Property Value

string

ClientId

Gets the client identifier of the connected client. Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.

public string ClientId { get; }

Property Value

string

Endpoint

Gets the endpoint of the connected client.

public string Endpoint { get; }

Property Value

string

ProtocolVersion

Gets the protocol version which is used by the connected client.

public MqttProtocolVersion ProtocolVersion { get; }

Property Value

MqttProtocolVersion

SessionItems

Gets or sets a key/value collection that can be used to share data within the scope of this session.

public IDictionary SessionItems { get; }

Property Value

IDictionary

UserName

Gets the user name of the connected client.

public string UserName { get; }

Property Value

string

UserProperties

Gets the user properties sent by the client. MQTT 5.0.0+ feature.

public List<MqttUserProperty> UserProperties { get; }

Property Value

List<MqttUserProperty>