关键是mqtt协议服务端的scala实现:https://github.com/fusesource/fuse-extra/tree/master/fusemq-apollo/fusemq-apollo-mqtt/src/main/scala/org/apache/activemq/apollo/mqtt
mqtt-client provides an ASL 2.0 licensed API to MQTT. It takes care of automatically reconnecting to your MQTT server and restoring your client session if any network failures occur.
Scaloid is a library that simplifies your Android code. It makes your code easy to understand and maintain by leveraging Scala language.