arcoirislabs / cordova-plugin-mqtt

MqTT Cordova Plugin for Apache Cordova (> v3.0)
MIT License
86 stars 49 forks source link

How I can establish connections to different brokers #20

Open 4refr0nt opened 8 years ago

4refr0nt commented 8 years ago

How I can use 2 objects (paho clients) for connecting to 2 (or more) different brokers at one time?

arcoirislabs commented 8 years ago

Hi, Currently you cannot connect to multiple servers but we may introduce it in our major release next time.

Sent from my iPhone

On 29-Sep-2016, at 9:27 PM, Victor Brutskiy notifications@github.com wrote:

How I can use 2 objects (paho clients) for connecting to 2 (or more) different brokers at one time?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

4refr0nt commented 8 years ago

Thanks! objects model may be usefull

arcoirislabs commented 8 years ago

Actually the native layer is capable of connecting multiple connections but we need to design a new interface. Object method may not be a good idea because multiple connections are still accessed by a single connection object in the native layer.

4refr0nt commented 8 years ago

ok, its not very important.