Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46dc947

Browse files
authored
Merge pull request mqttjs#581 from mtnbrit/patch-1
fix retain flag in publish, was retained typo
2 parents 5622151 + 35f5d7c commit 46dc947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/wss/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ client.on('connect', function () {
3838

3939
client.subscribe('topic', { qos: 0 })
4040

41-
client.publish('topic', 'wss secure connection demo...!', { qos: 0, retained: false })
41+
client.publish('topic', 'wss secure connection demo...!', { qos: 0, retain: false })
4242

4343
client.on('message', function (topic, message, packet) {
4444
console.log('Received Message:= ' + message.toString() + '\nOn topic:= ' + topic)

0 commit comments

Comments
 (0)