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; IList GetConnectedClients(); void Publish(IEnumerable applicationMessages); Task StartAsync(); Task StopAsync(); } }