ruby-mqtt | Pure Ruby gem that implements the MQTT protocol | Pub Sub library

 by   njh Ruby Version: v0.6.0 License: MIT

kandi X-RAY | ruby-mqtt Summary

kandi X-RAY | ruby-mqtt Summary

ruby-mqtt is a Ruby library typically used in Messaging, Pub Sub applications. ruby-mqtt has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Pure Ruby gem that implements the [MQTT] protocol, a lightweight protocol for publish/subscribe messaging. Also includes a class for parsing and generating [MQTT-SN] packets.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ruby-mqtt has a low active ecosystem.
              It has 501 star(s) with 130 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 23 open issues and 72 have been closed. On average issues are closed in 128 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ruby-mqtt is v0.6.0

            kandi-Quality Quality

              ruby-mqtt has 0 bugs and 0 code smells.

            kandi-Security Security

              ruby-mqtt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ruby-mqtt code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ruby-mqtt is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ruby-mqtt releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ruby-mqtt and discovered the below as its top functions. This is intended to give you an instant insight into ruby-mqtt implemented functionality, and help decide if they suit your requirements.
            • Connect to the session .
            • Publish a message to a topic .
            • Serialize the packet
            • Connect to the server
            • Handles the packet received
            • Return a new MQTT packet .
            • Parses HTTP connection
            • Create a new client .
            • Receive a connection response from the connection
            • Disconnect from the MQTT server .
            Get all kandi verified functions for this library.

            ruby-mqtt Key Features

            No Key Features are available at this moment for ruby-mqtt.

            ruby-mqtt Examples and Code Snippets

            No Code Snippets are available at this moment for ruby-mqtt.

            Community Discussions

            QUESTION

            How can I start a Procfile process, after the rails server has completely started up with foreman?
            Asked 2017-Jan-09 at 21:53

            I have a rails app that runs on parallel with a ruby script. This is script is a ruby-mqtt subscriber, basically it listens for messages over the mqtt protocol and then interacts with the rails app.

            The problem is that foreman starts this process simultaneously with the rails server and when there are messages being broadcast and the server has not finished it's startup process, the script crashes, and foreman kills the server with it.

            This is the example Procfile:

            ...

            ANSWER

            Answered 2017-Jan-09 at 21:53

            You can use the wait-for-it bash script to wait for a tcp port to become available, before the mqtt subscriber starts

            Source https://stackoverflow.com/questions/41556158

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ruby-mqtt

            You may get the latest stable version from [Rubygems]:.
            ~ ruby require 'rubygems' require 'mqtt'.

            Support

            Author: Nicholas J Humfrey. [@njh]: http://twitter.com/njh [MQTT]: http://www.mqtt.org/ [MQTT-SN]: http://mqtt.org/2013/12/mqtt-for-sensor-networks-mqtt-sn [Rubygems]: http://rubygems.org/ [Bundler]: http://bundler.io/ [MQTT URI]: https://github.com/mqtt/mqtt.github.io/wiki/URI-Scheme [Topic Filters]: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html#_Toc388534397. [MQTT::Client]: http://rubydoc.info/gems/mqtt/MQTT/Client#instance_attr_details [MQTT::Client.connect]: http://rubydoc.info/gems/mqtt/MQTT/Client.connect [MQTT::Client#publish]: http://rubydoc.info/gems/mqtt/MQTT/Client:publish [MQTT::Client#subscribe]: http://rubydoc.info/gems/mqtt/MQTT/Client:subscribe [MQTT::Client#get]: http://rubydoc.info/gems/mqtt/MQTT/Client:get.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/njh/ruby-mqtt.git

          • CLI

            gh repo clone njh/ruby-mqtt

          • sshUrl

            git@github.com:njh/ruby-mqtt.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Pub Sub Libraries

            EventBus

            by greenrobot

            kafka

            by apache

            celery

            by celery

            rocketmq

            by apache

            pulsar

            by apache

            Try Top Libraries by njh

            EtherCard

            by njhC++

            marquette

            by njhJavaScript