Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

MQTT inside application, how do you deal with multiple pages using it?

$
0
0

Hello everyone,
I have an application that I'm using MQTT, the way that I'm handling the client now is:
Everytime I navigate between pages, the ViewModel initialize the client and work with it

I was thinking that maybe it is interesting to share the same client between the ViewModels, so they work as a "background Thread" that is always listening to the mqtt server.
How do you do it inside your applications?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>