Giter VIP home page Giter VIP logo

paho.mqtt.wxapp.multiple's Introduction

介绍

开发一个小程序项目有连接两台MQTT服务器的需求,试了paho.mqtt.wxappMQTT.js两个适配微信的MQTT库,发现不能满足这个需求。看了下MQTT.js的源代码,发现它已经适配了微信基础库v1.7之后的WebScoket代码(最多连接5条ws),放弃改动。而paho.mqtt.wxapp这个库,还是用v1.7之前的代码,我就把WebSocket相关的API换成最新的,可以跑通多条WS链接,成功解决了我的问题。

使用

将paho-mqtt.js下载下来放入自己的工程文件中,API和paho.mqtt.wxapp的里面的完全一样(即和paho.mqtt.js相同)。

联系

E-mail: [email protected]

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.