ckrey / MQTTChat

Demonstration iOS App for MQTT-Client-Framework
Eclipse Public License 1.0
96 stars 30 forks source link

Backend setup for MQTTChat #12

Open linovate opened 4 years ago

linovate commented 4 years ago

Hi, I am an app developer considering building a chatting app and I am looking at all my options on which protocol to use. MQTT is one of the candidate...

I run a quick search in the iOS demo app and did not find server ip address or host name. I was wondering how is the server side set up? What server software (message broker) is used and what business logic look like? how to persist data on backend, what database is ideal for this? If you could share some code on server side, that would be perfect!

Thanks a lot !

ckrey commented 4 years ago

There is no business logic in the backend broker. All logic is in the client.

You may use any MQTT broker. Although there are a number of public MQTT broker instances available for testing, I do not recommend to use one of those for privacy reasons.

linovate commented 4 years ago

Thanks ! Could you point to which part of the code in the iOS demo app is responsible for connecting and receiving response from server? I am not able to identify them.