using System; using System.Collections.Generic; using System.Threading.Tasks; namespace MQTTnet.Core.Server { public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher { event EventHandler ClientConnected; event EventHandler ClientDisconnected; event EventHandler Started; Task> GetConnectedClientsAsync(); Task StartAsync(MqttServerOptions options); Task StopAsync(); } }