Table of Contents

Class MqttServerOptions

Namespace
MQTTnet.Server
Assembly
MQTTnet.dll
public sealed class MqttServerOptions
Inheritance
MqttServerOptions
Inherited Members

Constructors

MqttServerOptions()

public MqttServerOptions()

Properties

DefaultCommunicationTimeout

public TimeSpan DefaultCommunicationTimeout { get; set; }

Property Value

TimeSpan

DefaultEndpointOptions

public MqttServerTcpEndpointOptions DefaultEndpointOptions { get; }

Property Value

MqttServerTcpEndpointOptions

EnablePersistentSessions

public bool EnablePersistentSessions { get; set; }

Property Value

bool

KeepAliveMonitorInterval

[Obsolete("Use KeepAliveOptions instead.")]
public TimeSpan KeepAliveMonitorInterval { get; set; }

Property Value

TimeSpan

KeepAliveOptions

public MqttServerKeepAliveOptions KeepAliveOptions { get; }

Property Value

MqttServerKeepAliveOptions

MaxPendingMessagesPerClient

public int MaxPendingMessagesPerClient { get; set; }

Property Value

int

PendingMessagesOverflowStrategy

public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; }

Property Value

MqttPendingMessagesOverflowStrategy

TlsEndpointOptions

public MqttServerTlsTcpEndpointOptions TlsEndpointOptions { get; }

Property Value

MqttServerTlsTcpEndpointOptions

WriterBufferSize

Gets or sets the default and initial size of the packet write buffer. It is recommended to set this to a value close to the usual expected packet size * 1.5. Do not change this value when no memory issues are experienced.

public int WriterBufferSize { get; set; }

Property Value

int

WriterBufferSizeMax

Gets or sets the maximum size of the buffer writer. The writer will reduce its internal buffer to this value after serializing a packet. Do not change this value when no memory issues are experienced.

public int WriterBufferSizeMax { get; set; }

Property Value

int