Packages

mqtt

5.16.1 · 14 Oct 2026MIT4.6M / weekRepositoryHomepagenpmAtom feed

Your version

1.0.0

major13 Jan 2015Where it was published

1.14.1 is the newest release of 1.x.

In short

2 deprecated4 new10 changed

  • Deprecated

    Deprecate createServer and createSecureServer #231

  • Deprecated

    Deprecate createClient and createSecureClient in favor of a generic connect.

Security

Fixes 1 advisory that affected 0.3.13

Release note

  • Move the parser/generator of packets to a separate module mqtt-packet.

  • Integrate the new API for servers #145

  • Support all TLS options for servers.

  • Deprecated

    Deprecate createServer and createSecureServer #231

  • Deprecated

    Deprecate createClient and createSecureClient in favor of a generic connect.

  • Prepare new mqtt command line tools.

  • Integrate mows #182, and add browser tests.

  • Adds Connection#destroy().

  • Supports for multiple server URLs #215.

  • Resend in-flight packets when a reconnect happens #47.

  • Emit events when reconnect happens #186.

  • Improved performance

  • Remove index.js and just have a mqtt.js file in the main folder

  • Remove the usage of Connection in Client to achieve more speed and backpressure support (44k sent msg/s here).

  • Extract server, connection, etc into their own package, see mqtt-connection.

  • [x]

    Add the new CLI tools to the README

Closes #137.
Closes #224.
Closes #184.
Closes #231.
Closes #182.
Closes #47.
Closes #117.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.