Merge pull request #666 from rahulnpadalkar/master
Insecure Websocket connection issue while connecting to MQTT broker.
This commit is contained in:
@@ -120,6 +120,7 @@ export default {
|
|||||||
this.client.connect({
|
this.client.connect({
|
||||||
onSuccess: this.onConnectionSuccess,
|
onSuccess: this.onConnectionSuccess,
|
||||||
onFailure: this.onConnectionFailure,
|
onFailure: this.onConnectionFailure,
|
||||||
|
useSSL: true,
|
||||||
})
|
})
|
||||||
this.client.onConnectionLost = this.onConnectionLost
|
this.client.onConnectionLost = this.onConnectionLost
|
||||||
this.client.onMessageArrived = this.onMessageArrived
|
this.client.onMessageArrived = this.onMessageArrived
|
||||||
@@ -146,7 +147,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onMessageArrived(message) {
|
onMessageArrived(message) {
|
||||||
debugger
|
|
||||||
this.log.push({
|
this.log.push({
|
||||||
payload: `Message: ${message.payloadString} arrived on topic: ${message.destinationName}`,
|
payload: `Message: ${message.payloadString} arrived on topic: ${message.destinationName}`,
|
||||||
source: "info",
|
source: "info",
|
||||||
|
|||||||
Reference in New Issue
Block a user