Team XSockets.NET

MQTT - Configuration

MQTT is configured the same way as all other endpoints in XSockets. So if you want to you can specify an endpoint for MQTT on port 1883 (which is often used for MQTT) and also have other endpoints for clients not using MQTT.

Example Configuration

A basic configuration that will start an endpoint on localhost port 1883.

using XSockets.Core.Configuration;

public class MyMqttConfig : ConfigurationSetting
{
    public MyMqttConfig() : base("ws://127.0.0.1:1883") { }
}

For more information about configuration in XSockets see the general Configuration section

results matching ""

    No results matching ""