diff --git a/examples/wss/client.js b/examples/wss/client.js index c0d1d4379..b8e014acc 100644 --- a/examples/wss/client.js +++ b/examples/wss/client.js @@ -40,7 +40,7 @@ client.subscribe('topic', { qos: 0 }) client.publish('topic', 'wss secure connection demo...!', { qos: 0, retained: false }) -client.on('message', function (topic, message, pakcet) { +client.on('message', function (topic, message, packet) { console.log('Received Message:= ' + message.toString() + '\nOn topic:= ' + topic) })