Skip to content

Commit

Permalink
fix: add port number to demo nodejs application
Browse files Browse the repository at this point in the history
  • Loading branch information
bigpaulie committed May 15, 2024
1 parent 97af9b6 commit d79ebb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo-nodejs-emqx/node/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { listenForFileRequests, subscribeToTopic } from './subscriber.js';
const clientOptions = {
clean: true,
clientId: '',
port: Number(process.env.MQTT_PORT) || 1883,
};

if (process.env.MQTT_USER) {
Expand Down

0 comments on commit d79ebb7

Please sign in to comment.