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