
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
aws-iot-paho-mqtt
Advanced tools
A lightweight library to connect to the AWS IoT Service using an ESM friendly code based on paho-mqtt
This package is a lightweight library to connect to the AWS IoT Service using an ESM friendly code based on paho-mqtt and crypto-js
If you have any issues or feature requests, please file an issue or pull request.
This small library was built as an ad-hoc replacement for a particular use case where the use of the packages provided by aws was not useful since they do not support ESM and have many node-related dependencies.
Use your favorite package manader
npm install aws-iot-paho-mqtt
yarn add aws-iot-paho-mqtt
pnpm add aws-iot-paho-mqtt
## Usage
Import the package and connect to the IoT service
```js
import { IoTMqttClient} from 'aws-iot-paho-mqtt';
IoTMqttClient.getInstance().connect();
Then somewhere else in your code you can subscribe or unsubscribe to a topic
const subscribed = IoTMqttClient.getInstance().subscribeToTopic(topicUrl);
IoTMqttClient.getInstance().unsubscribeFromTopic(topicUrl);
Or listen to some of the events
client-connectedclient-disconnecteddata (for when a message arrive)dataSent (for when a message is sent)FAQs
A lightweight library to connect to the AWS IoT Service using an ESM friendly code based on paho-mqtt
We found that aws-iot-paho-mqtt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.