Mochi Co Mqtt Versions Save

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub

v2.6.3

2 weeks ago

What's Changed

Lots of good updates, with many thanks to @dgduncan @werbenhu @thedevop!

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.6.2...v2.6.3

v2.6.2

1 month ago

What's Changed

Thank you @thedevop and @werbenhu !

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.6.1...v2.6.2

v2.6.1

1 month ago

What's Changed

Thank you @werbenhu !

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.6.0...v2.6.1

v2.6.0

1 month ago

What's Changed

Be advised - this release includes a breaking change for the Docker image which may be fixed in the future.

File Based Configuration

You can use File Based Configuration with either the Docker image (noted above), or by running the build binary with the --config=config.yaml or --config=config.json parameter.

Configuration files provide a convenient mechanism for easily preparing a server with the most common configurations. You can enable and configure built-in hooks and listeners, and specify server options and compatibilities:

listeners:
  - type: "tcp"
    id: "tcp12"
    address: ":1883"
  - type: "ws"
    id: "ws1"
    address: ":1882"
  - type: "sysinfo"
    id: "stats"
    address: ":1880"
hooks:
  auth:
    allow_all: true
options:
  inline_client: true

Please review the examples found in examples/config for all available configuration options.

There are a few conditions to note:

  1. If you use file-based configuration, you can only have one of each hook type.
  2. You can only use built in hooks with file-based configuration, as the type and configuration structure needs to be known by the server in order for it to be applied.
  3. You can only use built in listeners, for the reasons above.

If you need to implement custom hooks or listeners, please do so using the traditional manner indicated in cmd/main.go.

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.6...v2.6.0

v2.4.6

3 months ago

What's Changed

Many thanks @thedevop!

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.5...v2.4.6

v2.4.5

4 months ago

What's Changed

A couple of small improvements, thank you @werbenhu and @thedevop! 🙂

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.4...v2.4.5

v2.4.4

4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.3...v2.4.4

v2.4.3

5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.2...v2.4.3

v2.4.2

5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.1...v2.4.2

v2.4.1

7 months ago

The weeks got away from me a bit so this release is a little overdue, but better late than never and it contains some good, minor updates.

What's Changed

  • Refactor Listener WG to track clients by @mochi-co in https://github.com/mochi-mqtt/server/pull/301 resolves issue #298 in which hooks could shut down before all clients had gracefully concluded their runtime. The server will now wait until all clients have disconnected and their goroutines ended before proceeding from the listener shutdown stage to the hooks shutdown stage.
  • Add some error logging in Listener.Serve(). by @werbenhu in https://github.com/mochi-mqtt/server/pull/303 which adds some extra logging to help track down issues in listeners, should they occur.
  • Add a Chinese version of README.md. by @werbenhu in https://github.com/mochi-mqtt/server/pull/307 is an excellent initiative by @werbenhu to bring Mochi MQTT to a wider international audience.
  • Emit warning if client keepalive is less than recommended minimum by @mochi-co in https://github.com/mochi-mqtt/server/pull/305 attempts to address some recurring issues where developers noticed client connection instability while using very low keepalive values (#293). Now we show a warning if a client connects with an insufficient keepalive value.

Also lots of great work happening with feature roadmapping and project planning in https://github.com/orgs/mochi-mqtt/discussions - so have a look if you are interested to get involved! 🚀

Full Changelog: https://github.com/mochi-mqtt/server/compare/v2.4.0...v2.4.1

Tests

  • Builds
  • Unit Tests Passing
  • Paho Interoperability Passing