using System; using System.Collections.Generic; using System.Threading.Tasks; namespace MQTTnet.Server { public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher { event EventHandler Started; event EventHandler ClientConnected; event EventHandler ClientDisconnected; event EventHandler ClientSubscribedTopic; event EventHandler ClientUnsubscribedTopic; IMqttServerOptions Options { get; } Task> GetConnectedClientsAsync(); Task SubscribeAsync(string clientId, IList topicFilters); Task UnsubscribeAsync(string clientId, IList topicFilters); Task StartAsync(IMqttServerOptions options); Task StopAsync(); } }