fix-observe-port

This commit is contained in:
unknown
2025-05-29 19:02:23 +08:00
parent 9ee6da990f
commit 094a129400
2 changed files with 3 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ $(function() {
randomClientID = 'OBGuest_' + Math.random().toString(16).substr(2, 8)
globalUserName = userName
globalProjectName = projectName
client = mqtt.connect((location.protocol == 'https:' ? 'wss://' : 'ws://') + window.location.host + (location.protocol == 'https:' ? ':8084' : ':8083') + '/mqtt', {
client = mqtt.connect((location.protocol == 'https:' ? 'wss://' : 'ws://') + window.location.host + ":" + (location.protocol == 'https:' ? MIXIO_WSS_PORT : MIXIO_WS_PORT) + '/mqtt', {
'clientId': randomClientID,
'username': userName,
'password': projectPass