Commit 2535b2ee authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix location

parent 4dc3f26d
......@@ -38,7 +38,7 @@ const app = Vue.createApp({
}
},
created() {
this.client = mqtt.connect('ws://localhost:9001')
this.client = mqtt.connect('ws://' + window.location.hostname + ':9001')
this.client.on('message', this.onMessage);
this.client.on('connect', this.onConnect);
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment