allow-modify-mqtt-port

This commit is contained in:
Eason010212
2024-03-12 22:49:53 +08:00
parent 8795e3114f
commit f55dbc173a
7 changed files with 80 additions and 27 deletions

View File

@@ -847,7 +847,7 @@ function view_project(projectName, projectType) {
keyName = userName.slice(1)
userName = 'MixIO_public'
}
client = mqtt.connect((location.protocol == 'https:' ? 'wss://' : 'ws://') + window.location.host.split(":")[0] + (location.protocol == 'https:' ? ':8084' : ':8083'), {
client = mqtt.connect((location.protocol == 'https:' ? 'wss://' : 'ws://') + window.location.host.split(":")[0] + (location.protocol == 'https:' ? (':'+MIXIO_WSS_PORT) : (':'+MIXIO_WS_PORT)), {
'clientId': randomClientID,
'username': userName,
'password': projectPass,