using System; using System.Collections.Generic; using System.Threading.Tasks; using MQTTnet.Core.Client; namespace MQTTnet.Core.Server { public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher { event EventHandler ClientConnected; event EventHandler ClientDisconnected; IList GetConnectedClients(); void Publish(IEnumerable applicationMessages); Task StartAsync(); Task StopAsync(); } }