Add extension method for subscriptions

This commit is contained in:
Christian Kratky
2017-12-04 22:40:44 +01:00
parent 644e948489
commit 2cb1c544f5
7 changed files with 71 additions and 1 deletions
@@ -9,7 +9,7 @@ namespace MQTTnet.Extensions.Rpc
{
public sealed class MqttRpcClient : IDisposable
{
private const string ResponseTopic = "$RPC/+/+/response";
private const string ResponseTopic = "$MQTTnet.RPC/+/+/response";
private readonly ConcurrentDictionary<string, TaskCompletionSource<byte[]>> _waitingCalls = new ConcurrentDictionary<string, TaskCompletionSource<byte[]>>();
private readonly IMqttClient _mqttClient;
private bool _isEnabled;