Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
expressify-mqtt
Advanced tools
An Expressify strategy enabling RESTful application over an MQTT(S) transport.
Current version: 1.0.0
Lead Maintainer: Halim Qarroum
npm install --save expressify-mqtt
In order to use expressify-mqtt
, you need to create an instance of the strategy using a backend such as MQTT.js or the AWS IoT SDK. The strategy requires that the MQTT backend follows the same interface as MQTT.js.
When initializing the expressify-mqtt
strategy, you need to pass it a supported MQTT back-end, as well as a topic mountpoint indicating the base topic which the strategy will use to create its topic architecture.
// Injecting the `mqtt.js` library.
const mqtt = require('mqtt');
// Creating the client instance.
const client = new Expressify.Client({
strategy: new MqttStrategy({ mqtt, topic: 'foo' })
});
Note that given the used MQTT service, there might be limitations on the number of forward slashes you can use.
The below example shows you how to create an instance of an Expressify server using the mqtt
strategy.
// Injecting the `mqtt.js` library.
const mqtt = require('mqtt');
// Creating the server instance.
const server = new Expressify.Server({
strategy: new MqttStrategy({ mqtt, topic: 'foo' })
});
// Listening for incoming requests.
server.listen().then(() => {
console.log(`[+] The server is listening on mount point '${server.strategy.opts.topic}' !`);
});
Different functional examples involving the expressify-mqtt
strategy are available in the examples directory.
.postMessage
.FAQs
Transport strategy for Expressify REST mechanisms over MQTT.
The npm package expressify-mqtt receives a total of 0 weekly downloads. As such, expressify-mqtt popularity was classified as not popular.
We found that expressify-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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.