fix-dynamic-port

This commit is contained in:
unknown
2025-05-29 11:40:55 +08:00
parent 9161c53fe8
commit 7f5ffbf5ad
2 changed files with 3 additions and 1 deletions

View File

@@ -912,7 +912,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,