Giter Site home page Giter Site logo

renren-fast-mqtt's Introduction

前台 https://github.com/wuxh123/renren-fast-vue

代码生成 renren-generator

功能介绍 基于renren-fast,增加了mqtt功能和协议解析功能。 使用org.eclipse.paho.client.mqttv3实现。

1.在测试过程中,发现mqtt掉线重连总是有问题,后来干脆在callback中重新创建连接了。这一步骤和网上大部分教程都不一样,我实测效果比较稳定。

有更好的想法的同学可以改掉。

2.实现了mqtt订阅、发布。订阅收到的消息会放入线程池中处理。

3.协议处理采用责任链模式,由java自动反射创建协议处理bean集合。这样省去了,添加协议相关调用的麻烦。

4.处理返回采用命令模式,每个处理返回cmd类,处理完协议后统一调用cmd.exectu()方法。

5.如果使用idea,直接可以。如果使用sts需要配置一下lombok

renren-fast-mqtt's People

Contributors

wuxh123 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

cckmit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.