hivemq-community-edition | HiveMQ CE is a Java-based open source MQTT broker | Websocket library

 by   hivemq Java Version: 2023.3 License: Apache-2.0

kandi X-RAY | hivemq-community-edition Summary

kandi X-RAY | hivemq-community-edition Summary

hivemq-community-edition is a Java library typically used in Networking, Websocket applications. hivemq-community-edition has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. However hivemq-community-edition build file is not available. You can download it from GitHub, GitLab, Maven.

HiveMQ CE is a Java-based open source MQTT broker that fully supports MQTT 3.x and MQTT 5. HiveMQ CE is the foundation of the HiveMQ enterprise-connectivity and messaging platform and implements all MQTT features. This project is the technical core of many large MQTT deployments and is now available as open source software under the Apache 2 license.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              hivemq-community-edition has a medium active ecosystem.
              It has 904 star(s) with 237 fork(s). There are 65 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 9 open issues and 117 have been closed. On average issues are closed in 237 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of hivemq-community-edition is 2023.3

            kandi-Quality Quality

              hivemq-community-edition has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              hivemq-community-edition is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              hivemq-community-edition releases are available to install and integrate.
              Deployable package is available in Maven.
              hivemq-community-edition has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              hivemq-community-edition saves you 119812 person hours of effort in developing the same functionality from scratch.
              It has 130115 lines of code, 10586 functions and 1342 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed hivemq-community-edition and discovered the below as its top functions. This is intended to give you an instant insight into hivemq-community-edition implemented functionality, and help decide if they suit your requirements.
            • Decodes the next header
            • Read properties
            • Decodes a CONNECT header
            • Decodes a message
            • Adds a message to the queue
            • Decodes an authentication message
            • Decodes the authentication method
            • Reads pending messages from a queue
            • Removes queued messages from a given bucket and key
            • Adds multiple messages to a single thread
            • Performs authentication
            • Replace all messages in a given queue with a given ID
            • Decodes a SUBSCRIBE message
            • Reads a message
            • Serialize to byte array
            • Gets all subscribed subscribers
            • Replace a single pubrel message
            • Initialize storage
            • Initializes the channel
            • Send the given JSON payload
            • Extract client session from byte array
            • Decodes a DISCONNECT message
            • Removes a subscriber from a single topic
            • Start the bucket
            • Performs the actual state change
            • Create new messages from queue
            Get all kandi verified functions for this library.

            hivemq-community-edition Key Features

            No Key Features are available at this moment for hivemq-community-edition.

            hivemq-community-edition Examples and Code Snippets

            No Code Snippets are available at this moment for hivemq-community-edition.

            Community Discussions

            QUESTION

            HiveMQ Prometheus extension NoClassDefFoundError. Can't start extension
            Asked 2019-Jul-24 at 15:24

            I'm running the hivemq mqtt broker community edition and wanted to add the prometheus extension for monitoring.
            Both come precompiled from the hivemq marketplace and the github project page.
            I download both components as a zip file, unzip them and copy them into a java 11 docker container using this dockerfile:

            ...

            ANSWER

            Answered 2019-Jul-24 at 15:24

            Actually no dependency from the hivemq broker community edition contains ServletContextListener. I downloaded the source code from github and modified the build.gradle file.

            Add the last line of the following snippet to the build.gradle file:

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

            QUESTION

            How to properly use a SSL configuration in HiveMQ Client? (MQTT)
            Asked 2019-Jul-14 at 20:55

            I created a client to test using a secure connection and encrypted payload so I wanted to use the default SSL configuration. I tried to do this but I got a ConnectionClosedException and the server immediately closely. Should I be configuring something on the server? I left code and the exception down below.

            HiveMQ:

            https://github.com/hivemq/hivemq-community-edition https://github.com/hivemq/hivemq-mqtt-client

            Code:

            ...

            ANSWER

            Answered 2019-Jul-14 at 20:55

            In order to use Ssl communications I needed to set up the HiveMQ server to speak TLS. The server does not come pre configured and must be done manually. I followed this link:

            https://github.com/hivemq/hivemq-community-edition/wiki/HowTos#howto-configure-server-side-tls-with-hivemq-and-keytool-self-signed

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

            QUESTION

            How to fix undefined MqttChannelInitializer constructor in HiveMQ Client?
            Asked 2019-Jun-14 at 18:56

            I was using HiveMQ Client version 1.0.1 but I decided to update to the recently released version 1.1. I completely started from scratch and imported the project as a Gradle project and tried to build. The build work only after ignoring a few failed tests. I'm getting 3 errors in 3 different classes. I realize this is likely related to the Dagger dependency injection tool and I had already successfully built the project and added the directory of build/generated/source/apt/main/ to my build path as noted by my previous stack post where I had issues with a DaggerSingletonComponent not being found: How to fix DaggerSingletonComponent not resolved in HiveMQ (MQTT protocol) . This seems to be a new issue and I'm not sure what's wrong. I tried rebuilding by project but the errors still persist. I've left some screenshot below as well as the specific errors.

            HiveMQ:

            https://github.com/hivemq/hivemq-community-edition

            https://github.com/hivemq/hivemq-mqtt-client

            Errors:

            The constructor MqttChannelInitializer(MqttClientConfig, MqttConnAckFlow, MqttEncoder, MqttConnectHandler, MqttDisconnectHandler, MqttAuthHandler, Lazy) is undefined

            The constructor MqttSession(MqttClientConfig, MqttSubscriptionHandler, MqttIncomingQosHandler, MqttOutgoingQosHandler) is undefined

            The method provideBootstrap(NettyEventLoopProvider, MqttChannelInitializer) in the type ConnectionModule is not applicable for the arguments (MqttClientConfig, NettyEventLoopProvider, MqttChannelInitializer)

            Screenshots:

            ...

            ANSWER

            Answered 2019-Jun-14 at 14:11

            Executing ./gradlew clean build on the command line will fix your error.

            But I also think that the real solution for your use case is to create a new empty project (gradle or maven) and add the client library as a dependency, like described here: https://hivemq.github.io/hivemq-mqtt-client/docs/installation.html

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

            QUESTION

            How to get client connection information in HiveMQ Client? (MQTT)
            Asked 2019-Jun-11 at 09:18

            I'm writing a main class that will create a few clients and test them subscribing and publishing. I'd like to display information of the clients connection, like the data & time connected, clientId, clientIP used to connect, whether they connected gracefully or not. I'm new to using tools like Logger so I'm not sure how I would do this. I left a link to the HiveMQ community edition (broker) and the client. I'd like to display this information in my main class in the HiveMQ client project but there a log file in the community edition called event.log which contains exactly the kind of information I want to display. I left an image below.

            HiveMQ:

            https://github.com/hivemq/hivemq-community-edition https://github.com/hivemq/hivemq-mqtt-client

            There is an event.log file in hivemq-community-edition that has the kind of information I'd like to display. It was generated when I build the project as a Gradle project so it won't be found unless you imported into Eclipse and built in with Gradle so I left a screenshot of what it looks like.

            Code in my Main class in HiveMQ Client:

            ...

            ANSWER

            Answered 2019-Jun-11 at 09:18

            You can obtain information about the client with the method getConfig e.g.

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

            QUESTION

            How to print all topics in HiveMQ Client? (MQTT)
            Asked 2019-Jun-10 at 16:41

            Is there a way to print all of the topics that the HiveMQ broker has stored? I'd like to print out all topics that clients are connected to for testing purposes in a main class in HiveMQ Client. I've left links for the HiveMQ Client and Community (Broker).

            HiveMQ:

            https://github.com/hivemq/hivemq-community-edition https://github.com/hivemq/hivemq-mqtt-client

            Code in my main class for the HiveMQ Client:

            ...

            ANSWER

            Answered 2019-Jun-10 at 16:41

            Is there a way to print all of the topics that the HiveMQ broker has stored?

            No. There is no such thing in MQTT as "give me a list of all topics in a broker".

            Your code can subscribe to all "active" topics but that does mean you will capture all of the topics unless you leave your code running 7/24 for months or years.

            Simply change your subscription to the following:

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

            QUESTION

            How to add HiveMQ Client as a dependency to HiveMQ Community Edition using Gradle?
            Asked 2019-Jun-07 at 17:01

            I'd like to combine HiveMQ Client and HiveMQ Community Edition which is the implementation for the broker into one project. I tried adding the HiveMQ client as a dependency to the build.gradle file in the Hive MQ Community Edition (broker). It was able to build successfully but I'm not sure if I did it correctly. When I tried to reference client classes inside the Community Edition it gives me errors. Am I missing something? I want to be able to just put put the client project inside of the broker community edition and be able to create a client and access all of the classes I could in HiveMQ client. I left the instructions from the HiveMQ Client website, links, and also what the build.gradle file looks like the HiveMQ community edition.

            Error I'm getting: The import com.hivemq.client cannot be resolved (Happens to all imports referencing anything in the HiveMQ Client project)

            Link to the HiveMQ GitHubs:

            https://github.com/hivemq/hivemq-mqtt-client

            https://github.com/hivemq/hivemq-community-edition

            Code from Main.Java that produces the error

            ...

            ANSWER

            Answered 2019-Jun-07 at 17:01

            I didn't have the HiveMQ client in my build path. On the line with red errors Eclipse gave me the option of fixing the project set up and I click on it and it automatically added the HiveMQ client to the build path. I posted a screenshot below.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install hivemq-community-edition

            Download the latest HiveMQ CE binary package. Run the run.sh (Linux/OSX) or run.bat (Windows) in the bin folder of the package. You can now connect MQTT clients to <ip address>:1883.
            Download the latest HiveMQ CE binary package.
            Unzip the package.
            Run the run.sh (Linux/OSX) or run.bat (Windows) in the bin folder of the package.

            Support

            HiveMQ CE is a Java-based open source MQTT broker that fully supports MQTT 3.x and MQTT 5. HiveMQ CE is the foundation of the HiveMQ enterprise-connectivity and messaging platform and implements all MQTT features. This project is the technical core of many large MQTT deployments and is now available as open source software under the Apache 2 license.
            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/hivemq/hivemq-community-edition.git

          • CLI

            gh repo clone hivemq/hivemq-community-edition

          • sshUrl

            git@github.com:hivemq/hivemq-community-edition.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 Websocket Libraries

            netty

            by netty

            ws

            by websockets

            websocket

            by gorilla

            websocketd

            by joewalnes

            koel

            by koel

            Try Top Libraries by hivemq

            hivemq-mqtt-client

            by hivemqJava

            hivemq-mqtt-web-client

            by hivemqJavaScript

            mqtt-cli

            by hivemqJava

            hivemq-spi

            by hivemqJava