rabbitmq-server/deps/rabbitmq_mqtt
David Ansari 967e262272 Add MQTT client id to connection closed event
As requested in https://github.com/rabbitmq/rabbitmq-server/discussions/6331#discussioncomment-5796154
include all infos that were emitted in the MQTT connection created event also
in the MQTT connection closed event.
This ensures infos such as MQTT client ID are part of the connection
closed event.
Therefore, it's easy for the user to correlate between the two event
types.
Note that the MQTT plugin emits connection created and connection closed events only if
the CONNECT packet was successfully processed, i.e.authentication was successful.

Remove the disconnected_at property because it was never used.
rabbit_event already adds a timestamp to any event.
2023-05-04 09:15:55 +00:00
..
include Add MQTT client id to connection closed event 2023-05-04 09:15:55 +00:00
priv/schema Add validator for non negative integer 2023-03-07 14:35:28 +01:00
src Add MQTT client id to connection closed event 2023-05-04 09:15:55 +00:00
test Add MQTT client id to connection closed event 2023-05-04 09:15:55 +00:00
.gitignore Support code coverage 2022-11-10 15:04:31 +01:00
BUILD.bazel Use gazelle generated bazel files 2023-04-17 18:13:18 +02:00
CODE_OF_CONDUCT.md Replace files with symlinks 2022-04-15 06:04:29 -07:00
CONTRIBUTING.md Replace files with symlinks 2022-04-15 06:04:29 -07:00
LICENSE Update LICENSE 2020-07-20 11:43:03 +01:00
LICENSE-MPL-RabbitMQ Revert drop of Exhibit B on MPL 2.0 2020-07-20 17:01:38 +01:00
Makefile Switch to an emqtt fork/branch for OTP26 2023-04-26 11:06:23 +02:00
README.md Update copyright (year 2020) 2020-03-10 16:39:48 +01:00
app.bzl Replace globs in bazel with explicit lists of files 2023-04-25 17:29:12 +02:00

README.md

RabbitMQ MQTT Plugin

Getting Started

This is an MQTT plugin for RabbitMQ.

The plugin is included in the RabbitMQ distribution. To enable it, use rabbitmq-plugins:

rabbitmq-plugins enable rabbitmq_mqtt

Default port used by the plugin is 1883.

Documentation

MQTT plugin documentation is available from rabbitmq.com.

Contributing

See CONTRIBUTING.md.

Running Tests

After cloning RabbitMQ umbrella repository, change into the rabbitmq-mqtt directory and run

make tests

This will bring up a RabbitMQ node with the plugin enabled and run integration tests against it. Note that there must be no other MQTT server running on ports 1883 and 8883.

(c) 2007-2020 VMware, Inc. or its affiliates.

Released under the Mozilla Public License, the same as RabbitMQ.