We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60f525c + edf7369 commit da9682eCopy full SHA for da9682e
1 file changed
packages/modules/web_themes/colors/source/src/components/mqttViewer/mqttClient.ts
@@ -10,7 +10,7 @@ import { type QoS } from 'mqtt-packet'
10
const defaultQoS: QoS = 0
11
const mqttConnection = {
12
host: location.hostname,
13
- port: location.protocol == 'https:' ? 443 : 80,
+ port: parseInt(location.port) || (location.protocol == 'https:' ? 443 : 80),
14
endpoint: '/ws',
15
protocol: (location.protocol == 'https:' ? 'wss' : 'ws') as MqttProtocol,
16
clean: true,
@@ -20,8 +20,6 @@ const mqttConnection = {
20
.toString(36)
21
.replace(/[^a-z]+/g, '')
22
.substring(0, 6),
23
- username: 'openWB',
24
- password: 'openWB',
25
}
26
const subscription = {
27
topic: '',
0 commit comments