pomelo mqtt connector

码农软件 · 软件分类 · 其他开发相关 · 2019-10-21 06:28:23

软件介绍

pomelo mqtt connector (pomelo mqtt connector) 基于 MQTT,TCP 和 WS 协议。

使用

var MqttConnector = require('pomelo-mqtt-connector');

// in pomelo app.configure setup mqtt connector configuration
app.configure('all', 'connector', function() {
    app.set('connectorConfig', {
        connector: MqttConnector,
        publishRoute: 'connector.mqttHandler.publish',
        subscribeRoute: 'connector.mqttHandler.subscribe',
        encode: MqttConnector.encode
    });
});

选项


    @param {Boolean} opts.distinctHost
    @param {Boolean} opts.timeout
    @param {Boolean} opts.setNoDelay
    @param {Boolean} opts.disconnectOnTimeout
    @param {String} opts.publishRoute
    @param {String} opts.subscribeRoute
    @param {String} opts.selfDefinedRoute

本文地址:https://www.codercto.com/soft/d/17214.html

The Smashing Book

The Smashing Book

Jacob Gube、Dmitry Fadeev、Chris Spooner、Darius A Monsef IV、Alessandro Cattaneo、Steven Snell、David Leggett、Andrew Maier、Kayla Knight、Yves Peters、René Schmidt、Smashing Magazine editorial team、Vitaly Friedman、Sven Lennartz / 2009 / $ 29.90 / € 23.90

The Smashing Book is a printed book about best practices in modern Web design. The book shares technical tips and best practices on coding, usability and optimization and explores how to create succes......一起来看看 《The Smashing Book》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具