# Hivemq client unavailable

**URL:** <https://community.hivemq.com/t/hivemq-client-unavailable/2137>\
**Category:** Uncategorized\
**Created:** [June 12, 2023, 3:14am UTC](https://community.hivemq.com/t/hivemq-client-unavailable/2137 "2023-06-12T03:14:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Rahul](https://community.hivemq.com/u/Rahul)\
**Post date:** [June 12, 2023, 3:14am UTC](https://community.hivemq.com/t/hivemq-client-unavailable/2137/1 "2023-06-12T03:14:54Z")

</div>

Hi Everyone,

There is one scenario for that I have been seeking for help to get better resolution/understand.

Scenario : Whenever client is communicating with broker and everything runs smoothing but in between whenever broker goes down and making up the broker then we have to restart the mqtt client other client unable to consume the message. Would like to know why it is happening ?

Thank you !!

Rahul

---

<div class="post-metadata">

**Author:** ![Diego](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Diego](https://community.hivemq.com/u/Diego)\
**Post date:** [June 12, 2023, 10:32am UTC](https://community.hivemq.com/t/hivemq-client-unavailable/2137/2 "2023-06-12T10:32:17Z")

</div>

Hello @Rahul

Based on the scenario described it will depend on how your clients handle reconnections when the broker goes down. Some MQTT clients/libraries will detect unsuccessfully connections and try reconnecting after a defined number of attempts.

Kind regards,  
Diego from HiveMQ Team

---

<div class="post-metadata">

**Author:** ![Rahul](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Rahul](https://community.hivemq.com/u/Rahul)\
**Post date:** [June 13, 2023, 2:44pm UTC](https://community.hivemq.com/t/hivemq-client-unavailable/2137/3 "2023-06-13T14:44:27Z")

</div>

Hi @Diego,

Thanks for quick response and your time.

Could you help me with any example of reconnection which use the asp .net mqtt client library ??

Thanks  
Rahul

---

<div class="post-metadata">

**Author:** ![Diego](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Diego](https://community.hivemq.com/u/Diego)\
**Post date:** [June 13, 2023, 4:20pm UTC](https://community.hivemq.com/t/hivemq-client-unavailable/2137/4 "2023-06-13T16:20:53Z")

</div>

Hi @Rahul

You’re welcome! I’m not very familiar with any `MQTT Client ASP.NET` library but please check the “Reconnecting” section of this GitHub repo.

```auto
                   finally
                   {
                       // Check the connection state every 5 seconds and perform a reconnect if required.
                       await Task.Delay(TimeSpan.FromSeconds(5));
                   }

```

> **[GitHub - rafiulgits/mqtt-client-dotnet-core: MQTTNet client implementation on...](https://github.com/rafiulgits/mqtt-client-dotnet-core)**
>
> MQTTNet client implementation on ASP.NET Core. Library https://github.com/dotnet/MQTTnet - GitHub - rafiulgits/mqtt-client-dotnet-core: MQTTNet client implementation on ASP.NET Core. Library https:...

Kind regards,  
Diego from HiveMQ Team
