mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
21 lines
739 B
C#
21 lines
739 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher
|
|
{
|
|
event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
|
|
event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
|
|
event EventHandler<MqttServerStartedEventArgs> Started;
|
|
|
|
Task<IList<ConnectedMqttClient>> GetConnectedClientsAsync();
|
|
|
|
Task SubscribeAsync(string clientId, IList<TopicFilter> topicFilters);
|
|
Task UnsubscribeAsync(string clientId, IList<string> topicFilters);
|
|
|
|
Task StartAsync(IMqttServerOptions options);
|
|
Task StopAsync();
|
|
}
|
|
} |